-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ npm run preview | |
After [performing a 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. | ||
|
@@ -141,7 +141,7 @@ If you disable this, you need to write your own Deno web server. Import and call | |
```ts | ||
import { serve } from 'https://deno.land/[email protected]/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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters