Skip to content

Commit

Permalink
feat(remix-edge-adapter)!: remove future flags from default config
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Jul 31, 2023
1 parent b5649c8 commit 8edd00c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
9 changes: 9 additions & 0 deletions packages/edge-demo-site/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ const { config } = require('@netlify/remix-edge-adapter')
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
...config,
// See https://remix.run/pages/v2
future: {
v2_dev: true,
v2_errorBoundary: true,
v2_headers: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
},
// This works out of the box with the Netlify adapter, but you can
// add your own custom config here if you want to.
//
Expand Down
11 changes: 1 addition & 10 deletions packages/remix-edge-adapter/src/defaultRemixConfig.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
import type { AppConfig } from '@remix-run/dev'

export const config: AppConfig = {
server: './server.ts',
ignoredRouteFiles: ['**/.*'],
server: './server.ts',
serverBuildPath: '.netlify/edge-functions/server.js',
serverConditions: ['deno', 'worker'],
serverDependenciesToBundle: 'all',
serverMainFields: ['module', 'main'],
serverModuleFormat: 'esm',
serverPlatform: 'neutral',
// See https://remix.run/pages/v2
future: {
v2_dev: true,
v2_errorBoundary: true,
v2_headers: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
},
}

0 comments on commit 8edd00c

Please sign in to comment.