Skip to content

Commit d0a9ff5

Browse files
committed
mv installGlobals --> vite conf
1 parent e899918 commit d0a9ff5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'dotenv/config'
22
import * as fs from 'node:fs'
3-
import chalk from 'chalk'
4-
import closeWithGrace from 'close-with-grace'
3+
54
import sourceMapSupport from 'source-map-support'
65

76
sourceMapSupport.install({

server/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import crypto from 'node:crypto'
22
import { createRequestHandler } from '@remix-run/express'
3-
import { installGlobals, type ServerBuild } from '@remix-run/node'
3+
import { type ServerBuild } from '@remix-run/node'
44
import Sentry from '@sentry/remix'
55
import { ip as ipAddress } from 'address'
66
import chalk from 'chalk'
@@ -12,8 +12,6 @@ import getPort, { portNumbers } from 'get-port'
1212
import helmet from 'helmet'
1313
import morgan from 'morgan'
1414

15-
installGlobals({ nativeFetch: true })
16-
1715
const MODE = process.env.NODE_ENV ?? 'development'
1816
const IS_PROD = MODE === 'production'
1917
const IS_DEV = MODE === 'development'

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { vitePlugin as remix } from '@remix-run/dev'
2+
import { installGlobals } from '@remix-run/node'
23
import { sentryVitePlugin } from '@sentry/vite-plugin'
34
import { glob } from 'glob'
45
import { flatRoutes } from 'remix-flat-routes'
@@ -11,6 +12,8 @@ declare module '@remix-run/server-runtime' {
1112
}
1213
}
1314

15+
installGlobals({ nativeFetch: true })
16+
1417
const MODE = process.env.NODE_ENV
1518

1619
export default defineConfig({

0 commit comments

Comments
 (0)