Skip to content

Commit

Permalink
add cross-env to pass api-url from cil
Browse files Browse the repository at this point in the history
  • Loading branch information
JYC0413 committed Nov 24, 2023
1 parent 4cd7bce commit 434db2f
Show file tree
Hide file tree
Showing 5 changed files with 3,287 additions and 4,636 deletions.
8 changes: 0 additions & 8 deletions .env.local.example

This file was deleted.

28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@types/uuid": "^9.0.1",
"@vitest/coverage-c8": "^0.29.7",
"autoprefixer": "^10.4.14",
"cross-env": "^7.0.3",
"endent": "^2.1.0",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
Expand Down
2 changes: 1 addition & 1 deletion pages/api/home/home.state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface HomeInitialState {
}

export const initialState: HomeInitialState = {
api: '',
api: process.env.NEXT_PUBLIC_API_URL || "",
apiKey: '',
loading: false,
pluginKeys: [],
Expand Down
Loading

0 comments on commit 434db2f

Please sign in to comment.