Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
v1.0.1
  • Loading branch information
jwo0o0 authored Nov 27, 2024
2 parents 58dff47 + 49f6136 commit e43cd03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
const destinationUrl =
process.env.NODE_ENV === "production"
? process.env.NEXT_PUBLIC_PROD_API_URL
: process.env.NEXT_PUBLIC_DEV_API_URL;
return [
{
source: "/api/:path*",
destination: `${destinationUrl}/:path*`,
},
];
},
images: {
remotePatterns: [
{
Expand Down

0 comments on commit e43cd03

Please sign in to comment.