Skip to content

Commit

Permalink
Fix for Azure deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
superfaz committed Dec 14, 2023
1 parent 19a6581 commit 10deed8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 10 additions & 8 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
export default function nextConfig(phase, { defaultConfig }) {
console.log(phase);
console.log(defaultConfig);
console.log(process.env);

return {
output: "standalone",
};
export default function nextConfig() {
if (process.env.GITHUB_WORKFLOW) {
// Configuration for Azure Static Web Apps
return {
output: "standalone",
};
} else {
// Default configuration
return {};
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:azure": "next build",
"start": "next start",
"lint": "next lint"
},
Expand Down

0 comments on commit 10deed8

Please sign in to comment.