Skip to content

Commit

Permalink
fix: not using .env in runtime so remove it when compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zrll12 committed Nov 2, 2024
1 parent 5cfce3e commit 54170a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/BackendApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { notifications } from '@mantine/notifications';
import { Cookie } from '@/components/cookie';

export const SERVER_URL = process.env.NEXT_PUBLIC_BACKEND_URL === undefined ?
'https://wj.klpbbs.cn' : process.env.NEXT_PUBLIC_BACKEND_URL;
'' : process.env.NEXT_PUBLIC_BACKEND_URL;

export const handleError = (errorMessage: string, status: number) => {
if (status === 401) {
Expand Down

0 comments on commit 54170a2

Please sign in to comment.