Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/gate-controller/next.config.ts
1080 views
1
import type { NextConfig } from "next";
2
const isProd = process.env.NODE_ENV === "production";
3
4
const internalHost = process.env.TAURI_DEV_HOST || "localhost";
5
const nextConfig: NextConfig = {
6
// https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
7
output: "export",
8
// Note: This feature is required to use the Next.js Image component in SSG mode.
9
// See https://nextjs.org/docs/messages/export-image-api for different workarounds.
10
images: {
11
unoptimized: true,
12
},
13
// Configure assetPrefix or else the server won't properly resolve your assets.
14
assetPrefix: isProd ? undefined : `http://${internalHost}:3000`,
15
/* config options here */
16
};
17
18
export default nextConfig;
19
20