feat: switch to node runtime

This commit is contained in:
kolaente 2024-06-27 21:30:54 +02:00
parent 7910b43d26
commit e8bbf98495
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
4 changed files with 18 additions and 13 deletions

1
.env.example Normal file

@ -0,0 +1 @@
TURNSTILE_SECRET=

@ -2,14 +2,15 @@ import {defineConfig, envField} from 'astro/config'
import tailwind from '@astrojs/tailwind'
import markdoc from '@astrojs/markdoc'
import cloudflare from '@astrojs/cloudflare'
// import node from '@astrojs/node'
import node from '@astrojs/node'
// https://astro.build/config
export default defineConfig({
output: 'hybrid',
integrations: [tailwind(), markdoc()],
adapter: cloudflare(),
adapter: node({
mode: 'standalone',
}),
experimental: {
env: {
schema: {

@ -5,9 +5,11 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"lint": "astro check --root ./src",
"serve-dist": "node ./dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
@ -23,5 +25,8 @@
"astro": "^4.10.3",
"tailwindcss": "^3.4.4",
"typescript": "^5.4.5"
},
"devDependencies": {
"sharp": "^0.33.4"
}
}

@ -47,6 +47,10 @@ importers:
typescript:
specifier: ^5.4.5
version: 5.4.5
devDependencies:
sharp:
specifier: ^0.33.4
version: 0.33.4
packages:
@ -4178,13 +4182,11 @@ snapshots:
dependencies:
color-name: 1.1.4
simple-swizzle: 0.2.2
optional: true
color@4.2.3:
dependencies:
color-convert: 2.0.1
color-string: 1.9.1
optional: true
comma-separated-tokens@2.0.3: {}
@ -4232,8 +4234,7 @@ snapshots:
destroy@1.2.0: {}
detect-libc@2.0.3:
optional: true
detect-libc@2.0.3: {}
deterministic-object-hash@2.0.2:
dependencies:
@ -4656,8 +4657,7 @@ snapshots:
inherits@2.0.4: {}
is-arrayish@0.3.2:
optional: true
is-arrayish@0.3.2: {}
is-binary-path@2.1.0:
dependencies:
@ -5562,7 +5562,6 @@ snapshots:
'@img/sharp-wasm32': 0.33.4
'@img/sharp-win32-ia32': 0.33.4
'@img/sharp-win32-x64': 0.33.4
optional: true
shebang-command@2.0.0:
dependencies:
@ -5581,7 +5580,6 @@ snapshots:
simple-swizzle@0.2.2:
dependencies:
is-arrayish: 0.3.2
optional: true
sisteransi@1.0.5: {}