diff --git a/apps/api/src/routes/public.ts b/apps/api/src/routes/public.ts index 72404ae..0e11648 100644 --- a/apps/api/src/routes/public.ts +++ b/apps/api/src/routes/public.ts @@ -77,10 +77,7 @@ publicRoutes.get('/qrcode', async (c) => { const overrideUrl = c.req.query('url'); const reqUrl = new URL(c.req.url); - const base = - overrideUrl ?? - c.env.PUBLIC_BASE_URL ?? - `${reqUrl.protocol}//${reqUrl.host}`; + const base = overrideUrl ?? `${reqUrl.protocol}//${reqUrl.host}`; const target = base.replace(/\/$/, '') + '/enviar'; if (format === 'svg') { diff --git a/apps/web/wrangler.toml b/apps/web/wrangler.toml index f9e884b..fd58929 100644 --- a/apps/web/wrangler.toml +++ b/apps/web/wrangler.toml @@ -21,7 +21,7 @@ bucket_name = "wedding-media" [vars] COUPLE_NAMES = "Stefanie & Leandro" -PUBLIC_BASE_URL = "https://stefanieeleandro.pages.dev" +PUBLIC_BASE_URL = "https://stefanieeleandro.lronetto.workers.dev" S3_REGION = "auto" S3_BUCKET = "wedding-media" S3_FORCE_PATH_STYLE = "true"