Skip to content

Commit

Permalink
feat: add const with deploy url
Browse files Browse the repository at this point in the history
  • Loading branch information
soyricardodev committed Jun 15, 2024
1 parent 2056f9d commit 207310c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/social-polling/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* for Docker builds.
*/
await import("./src/env.js");
import { env } from "./src/env.js";

const giftingConciergeURL = "https://giftingconcierge.theliaison.vercel.app";

/** @type {import("next").NextConfig} */
const nextConfig = {
Expand All @@ -27,19 +28,19 @@ const nextConfig = {
},
{
source: "/gift",
destination: env.GIFTING_CONCIERGE_URL,
destination: giftingConciergeURL,
},
{
source: "/gift/:path*",
destination: `${env.GIFTING_CONCIERGE_URL}/:path*`,
destination: `${giftingConciergeURL}/:path*`,
},
{
source: "/giftshop",
destination: `${env.GIFTING_CONCIERGE_URL}/giftshop`,
destination: `${giftingConciergeURL}/giftshop`,
},
{
source: "/giftshop/:path*",
destination: `${env.GIFTING_CONCIERGE_URL}/giftshop/:path*`,
destination: `${giftingConciergeURL}/giftshop/:path*`,
},
]
}
Expand Down

0 comments on commit 207310c

Please sign in to comment.