Repository navigation
cli v1.0.2
Patch Changes
-
New apps now fingerprint assets in production and close the asset server on shutdown. With
NODE_ENV=production, asset URLs include a content hash and are served withCache-Control: public, max-age=31536000, immutableinstead ofno-cache. TheSIGINTandSIGTERMhandlers inserver.tsalso awaitassets.close()before exiting. (#12086)Existing generated apps can apply the same setup:
// app/assets.ts const isDevelopment = nodeEnv === 'development' +const isProduction = nodeEnv === 'production' export const assets = createAssetServer({ minify: !isDevelopment, + fingerprint: isProduction, watch: isDevelopment, })
// server.ts +import { assets } from './app/assets.ts' import { router } from './app/router.ts' function shutdown() { - server.close(() => process.exit(0)) + server.close(() => assets.close().finally(() => process.exit(0))) }
-
New apps created with
remix newon Windows now rundev,hmr,start, andtestthroughcross-env-shell, avoiding the'NODE_ENV' is not recognizederror in Windows command shells while preserving Ctrl+C shutdown handling. The generated app includescross-envas a production dependency sostartalso works when development dependencies are omitted. Apps created on macOS and Linux keep their existing scripts and dependencies (#11996). (#12096) -
Bumped
@remix-run/*dependencies: