fix: env variables did not resolve in prod
This commit is contained in:
parent
73ea35980d
commit
03acebb23e
5 changed files with 106 additions and 105 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { versions } from 'node:process';
|
||||
import { env, versions } from 'node:process';
|
||||
import type { UpgradeWebSocket } from 'hono/ws';
|
||||
import { createHonoServer } from 'react-router-hono-server/node';
|
||||
import type { WebSocket } from 'ws';
|
||||
|
|
@ -20,11 +20,11 @@ declare global {
|
|||
// This module contains a side-effect because everything running here
|
||||
// exists for the lifetime of the process, making it appropriate.
|
||||
log.info('server', 'Running Node.js %s', versions.node);
|
||||
configureLogger(process.env[envVariables.debugLog]);
|
||||
configureLogger(env[envVariables.debugLog]);
|
||||
const config = await loadConfig(
|
||||
configureConfig({
|
||||
loadEnv: process.env[envVariables.envOverrides],
|
||||
path: process.env[envVariables.configPath],
|
||||
loadEnv: env[envVariables.envOverrides],
|
||||
path: env[envVariables.configPath],
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue