プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

fixed root

Kohei Watanabe (Mar 23, 2024, 7:54 PM +0900) 07d437da 6a43e9dd

+6 -2
+3 -1
astro-fastify-ssg/server.js
··· 7 7 8 8 if (opts.dev) { 9 9 const astro = await import("astro"); 10 - const astroDevServer = await astro.dev(); 10 + const astroDevServer = await astro.dev({ 11 + root: fileURLToPath(import.meta.resolve(".")), 12 + }); 11 13 await fastify.register(await import("@fastify/http-proxy"), { 12 14 upstream: `http://localhost:${astroDevServer.address.port}`, 13 15 });
+3 -1
astro-fastify/server.js
··· 8 8 9 9 if (opts.dev) { 10 10 const astro = await import("astro"); 11 - const astroDevServer = await astro.dev(); 11 + const astroDevServer = await astro.dev({ 12 + root: fileURLToPath(import.meta.resolve(".")), 13 + }); 12 14 await fastify.register(await import("@fastify/http-proxy"), { 13 15 upstream: `http://localhost:${astroDevServer.address.port}`, 14 16 });