Skip to content

Commit e45e83f

Browse files
committed
update docs
1 parent f278408 commit e45e83f

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

content/adapters/standalone.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export default config;
3434

3535
Using the example above, just run `node .output/server.mjs` to run the server.
3636

37-
::: info
38-
Check out the full standalone starter template [here](https://github.com/svartajs/svarta/tree/main/templates/starter-http)
37+
::: warning
38+
Even if the `.output` folder just contains a single file, you should always deploy the entire folder, as there are no guarantees the output bundle only consists of a single file.
3939
:::
4040

4141
## Configuration reference

content/index.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,3 @@ npm run dev
6969
The default project contains an `index.html` file that is served as `/` and an API route that returns a text, which will be inserted into the HTML page.
7070

7171
Check out [Concepts](/concepts/routes) to learn how to create routes.
72-
73-
## Oh no, ESM!
74-
75-
The default template uses `ES modules` instead of CommonJS. The transition to ESM has been quite troublesome so far, however most platforms and dependencies support ESM now:
76-
77-
- https://blog.logrocket.com/es-modules-in-node-js-12-from-experimental-to-release/
78-
- https://blog.cloudflare.com/workers-javascript-modules/
79-
- https://aws.amazon.com/de/about-aws/whats-new/2022/01/aws-lambda-es-modules-top-level-await-node-js-14/
80-
- https://www.netlify.com/blog/intro-to-serverless-functions/
81-
- https://deno.land/[email protected]/npm_nodejs/compatibility_mode
82-
- https://bun.sh/docs/runtime/modules
83-
84-
The output module format can still be changed to CommonJS, however in most cases, this should not be necessary.

0 commit comments

Comments
 (0)