Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix remix dev warnings (#2277)

Ivan Starkov08cbed3fcdbf
diff --git a/fixtures/webstudio-remix-vercel/remix.config.js b/fixtures/webstudio-remix-vercel/remix.config.js
index b2da45dbbb..b6adbdb70e 100644
--- a/fixtures/webstudio-remix-vercel/remix.config.js
+++ b/fixtures/webstudio-remix-vercel/remix.config.js
@@ -7,6 +7,8 @@ module.exports = {
"nanoevents",
"nanostores",
"@nanostores/react",
+ "nanoid",
+ "@jsep-plugin/assignment",
],
future: {
v2_errorBoundary: true,
@@ -14,5 +16,6 @@ module.exports = {
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
+ v2_dev: true,
},
};
diff --git a/packages/cli/src/__generated__/templates.ts b/packages/cli/src/__generated__/templates.ts
index 9d7c37d248..f43d075cab 100644
--- a/packages/cli/src/__generated__/templates.ts
+++ b/packages/cli/src/__generated__/templates.ts
@@ -21,7 +21,7 @@ export const templates: Record<ProjectTarget, Folder> = {
{
name: "remix.config.js",
content:
- '/** @type {import(\'@remix-run/dev\').AppConfig} */\nmodule.exports = {\n ignoredRouteFiles: ["**/.*"],\n serverModuleFormat: "cjs",\n serverDependenciesToBundle: [\n /@webstudio-is\\/(?!prisma-client)/,\n "nanoevents",\n "nanostores",\n "@nanostores/react",\n ],\n future: {\n v2_errorBoundary: true,\n v2_headers: true,\n v2_meta: true,\n v2_normalizeFormMethod: true,\n v2_routeConvention: true,\n },\n};\n',
+ '/** @type {import(\'@remix-run/dev\').AppConfig} */\nmodule.exports = {\n ignoredRouteFiles: ["**/.*"],\n serverModuleFormat: "cjs",\n serverDependenciesToBundle: [\n /@webstudio-is\\/(?!prisma-client)/,\n "nanoevents",\n "nanostores",\n "@nanostores/react",\n "nanoid",\n "@jsep-plugin/assignment",\n ],\n future: {\n v2_errorBoundary: true,\n v2_headers: true,\n v2_meta: true,\n v2_normalizeFormMethod: true,\n v2_routeConvention: true,\n v2_dev: true,\n },\n};\n',
encoding: "utf-8",
merge: false,
},
diff --git a/packages/cli/templates/defaults/remix.config.js b/packages/cli/templates/defaults/remix.config.js
index b2da45dbbb..b6adbdb70e 100644
--- a/packages/cli/templates/defaults/remix.config.js
+++ b/packages/cli/templates/defaults/remix.config.js
@@ -7,6 +7,8 @@ module.exports = {
"nanoevents",
"nanostores",
"@nanostores/react",
+ "nanoid",
+ "@jsep-plugin/assignment",
],
future: {
v2_errorBoundary: true,
@@ -14,5 +16,6 @@ module.exports = {
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
+ v2_dev: true,
},
};