Skip to content

Commit

Permalink
Using standalone build
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Mar 19, 2024
1 parent e30aab1 commit 34feed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const config = {
output: 'standalone',
poweredByHeader: false,
async rewrites() {
return {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "rimraf build .next public/_next",
"build:standalone": "npm run clean && dotenv -v STANDALONE_BUILD=true next build && copyfiles package-lock.json public/**/*.* .next/standalone && cd deploy && copyfiles *.* ../.next/standalone && cd ../.next && copyfiles \"static/**/*\" standalone/public/_next && cd standalone && npm ci --production --ignore-scripts && rimraf node_modules/@next/swc-*",
"dev": "cross-env NODE_OPTIONS='--inspect' node --require ./load-appinsights.js ./node_modules/.bin/next dev",
"build": "next build",
"build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/",
"start": "node --require ./load-appinsights.js ./node_modules/.bin/next start",
"analyze": "cross-env ANALYZE=true npm run build",
"format-code": "prettier \"pages/**/*.*\" \"components/**/*.*\" \"layouts/**/*.*\" \"config/**/*.*\" --write",
Expand Down

0 comments on commit 34feed8

Please sign in to comment.