This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit a7be39e
1 parent c25c180 commit a7be39e Copy full SHA for a7be39e
File tree 2 files changed +4
-7
lines changed
packages/adapters/node/src
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function getAdapter(options: Options): AstroAdapter {
18
18
isSharpCompatible : true ,
19
19
} ,
20
20
i18nDomains : 'experimental' ,
21
- envGetSecret : 'experimental ' ,
21
+ envGetSecret : 'stable ' ,
22
22
} ,
23
23
} ;
24
24
}
Original file line number Diff line number Diff line change 1
1
import type { SSRManifest } from 'astro' ;
2
2
import { NodeApp , applyPolyfills } from 'astro/app/node' ;
3
+ import { setGetEnv } from 'astro/env/setup' ;
3
4
import createMiddleware from './middleware.js' ;
4
5
import { createStandaloneHandler } from './standalone.js' ;
5
6
import startServer from './standalone.js' ;
6
7
import type { Options } from './types.js' ;
8
+
7
9
// This needs to run first because some internals depend on `crypto`
8
10
applyPolyfills ( ) ;
9
-
10
- // Won't throw if the virtual module is not available because it's not supported in
11
- // the users's astro version or if astro:env is not enabled in the project
12
- await import ( 'astro/env/setup' )
13
- . then ( ( mod ) => mod . setGetEnv ( ( key ) => process . env [ key ] ) )
14
- . catch ( ( ) => { } ) ;
11
+ setGetEnv ( ( key ) => process . env [ key ] ) ;
15
12
16
13
export function createExports ( manifest : SSRManifest , options : Options ) {
17
14
const app = new NodeApp ( manifest ) ;
You can’t perform that action at this time.
0 commit comments