Skip to content

Commit eff00be

Browse files
committed
dynamically set next output mode
1 parent 96b421b commit eff00be

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
node-version: "18"
2020
- name: Build Website
21-
run: npm install && NEXT_PUBLIC_API_PUBLIC_BASE_URL="" npm run build
21+
run: npm install && OUTPUT=export NEXT_PUBLIC_API_PUBLIC_BASE_URL="" npm run build
2222
working-directory: ./kite-web
2323
- name: Set up Go
2424
uses: actions/setup-go@v4

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN apt-get update
1414
RUN apt-get -y install nodejs
1515

1616
# Build website
17+
ENV OUTPUT=export
1718
ENV NEXT_PUBLIC_API_PUBLIC_BASE_URL=""
1819
RUN cd kite-web && npm install && npm run build && cd ..
1920

kite-web/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const nextConfig = {
33
reactStrictMode: true,
44
transpilePackages: ["lucide-react"],
5-
output: "export",
5+
output: process.env.OUTPUT === "export" ? "export" : "standalone",
66
};
77

88
export default nextConfig;

0 commit comments

Comments
 (0)