From f3b234b2582bda3664f5b371830944cbe41f9680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elian=20=E2=98=95=EF=B8=8F?= Date: Fri, 4 Aug 2023 15:14:31 +0200 Subject: [PATCH] chore: update Deno server import path (#7959) --- packages/integrations/deno/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/deno/README.md b/packages/integrations/deno/README.md index 01908317b6..4e0caff902 100644 --- a/packages/integrations/deno/README.md +++ b/packages/integrations/deno/README.md @@ -81,7 +81,7 @@ npm run preview After [performing a build](https://docs.astro.build/en/guides/deploy/#building-your-site-locally) there will be a `dist/server/entry.mjs` module. You can start a server by importing this module in your Deno app: ```js -import './dist/entry.mjs'; +import './dist/server/entry.mjs'; ``` See the `start` option below for how you can have more control over starting the Astro server. @@ -129,7 +129,7 @@ If you disable this, you need to write your own Deno web server. Import and call ```ts import { serve } from 'https://deno.land/std@0.167.0/http/server.ts'; -import { handle } from './dist/entry.mjs'; +import { handle } from './dist/server/entry.mjs'; serve((req: Request) => { // Check the request, maybe do static file handling here.