Skip to content

Commit faeb462

Browse files
committed
change next.config depending on build context
1 parent 5ef1d81 commit faeb462

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/desktop-v2/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
output:"export",
3+
output: process.env.ENV==="desktop" ? "export" : "standalone",
44
transpilePackages: ["@supernova/api-client"],
55
}
66

apps/desktop-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"start": "serve out -l 3000",
8+
"start": "next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {

apps/desktop-v2/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
33
"build": {
4-
"beforeBuildCommand": "npm run build",
4+
"beforeBuildCommand": "ENV=desktop npm run build",
55
"beforeDevCommand": "npm run dev",
66
"devPath": "http://localhost:3000",
77
"distDir": "../out"

0 commit comments

Comments
 (0)