Skip to content

Commit

Permalink
build: next build
Browse files Browse the repository at this point in the history
  • Loading branch information
shanexi committed Sep 20, 2024
1 parent ad222d2 commit 1ff698b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions web/apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ module.exports = {
return config;
},
rewrites: async () => {
const NEXT_PUBLIC_API_URL =
process.env.NODE_ENV === 'development'
? 'http://34.239.158.245:8099'
: process.env.NEXT_PUBLIC_API_URL || 'http://34.239.158.245:8098';
const NEXT_PUBLIC_API_URL = process.env.NEXT_PUBLIC_API_URL;
return [
{
source: '/api/:path*',
Expand Down
6 changes: 3 additions & 3 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"author": "kun",
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"build": "turbo build --filter=!storybook",
"dev": "turbo dev --filter=!storybook",
"lint": "turbo lint --filter=!storybook",
"type-check": "turbo type-check",
"clean": "turbo clean",
"prepare": "cd .. && husky ./web/.husky",
Expand Down

0 comments on commit 1ff698b

Please sign in to comment.