Should be able to deploy
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const apiUrl =
|
||||
process.env.NODE_ENV !== "production"
|
||||
? `http://localhost:${process.env.BACKEND_PORT ?? 3001}`
|
||||
: `https://${process.env.SERVER_NAME}/api`;
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
output: "standalone",
|
||||
// webpack: (config) => {
|
||||
// config.resolve.alias["@"] = path.resolve(__dirname, "./");
|
||||
// return config;
|
||||
// },
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
@@ -13,6 +22,7 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
env: {
|
||||
NEXT_PUBLIC_BACKEND_PORT: process.env.BACKEND_PORT,
|
||||
NEXT_PUBLIC_API_URL: apiUrl,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user