diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 7dcb86c..fbda442 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -20,7 +20,7 @@ export default function Home({ data }: PageProps) { const baseUrl = Deno.env.get("DENO_ENV") === "development" ? "http://localhost:8000" : Deno.env.get("DENO_ENV") === "preview" - ? "https://nyaomaru-deno-sample*" + ? "https://nyaomaru-deno-sample--*.deno.dev" : "https://nyaomaru-deno-sample.deno.dev"; if (!csp.directives.styleSrc) { @@ -35,6 +35,8 @@ export default function Home({ data }: PageProps) { csp.directives.styleSrc.push(`${baseUrl}/styles.css`); csp.directives.imgSrc.push(`${baseUrl}/logo.svg`); csp.directives.scriptSrc.push(baseUrl); + + console.log("DENO_DEPLOY_ID", Deno.env.get("DENO_DEPLOYMENT_ID")); }); return (