Skip to content

Commit

Permalink
change next.config depending on build context
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvincent committed Sep 16, 2023
1 parent 5ef1d81 commit faeb462
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/desktop-v2/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output:"export",
output: process.env.ENV==="desktop" ? "export" : "standalone",
transpilePackages: ["@supernova/api-client"],
}

Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "serve out -l 3000",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-v2/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeBuildCommand": "ENV=desktop npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:3000",
"distDir": "../out"
Expand Down

1 comment on commit faeb462

@vercel
Copy link

@vercel vercel bot commented on faeb462 Sep 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.