Files
webstudio/apps/builder/remix.config.js
T
Ivan Starkov 2328f37fd2 Fix Escape and Enter issues (#1374)
## Description

closes #1359

The only Esc event that needed to be passed into Canvas from the builder
is cancelCurrentDrag (don't know why)

- [x] - Todo reset/notshow outline on canvas Escape click too to have
visual response
- [x] - Fix Enter to work only in Navigator

## Steps for reproduction

See corresponding issue #1359 . 

## Code Review
- [x] hi @kof , I need you to do
  - test it on preview

- [x] hi @TrySound , I need you to do
  - detailed review (read every line)

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
2023-04-05 23:38:07 +04:00

44 lines
1.0 KiB
JavaScript

require("./env-check");
/**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
publicPath: "/build/",
serverBuildPath: "build/index.js",
serverMainFields: ["main", "module"],
serverModuleFormat: "cjs",
serverPlatform: "node",
serverMinify: false,
// This makes sure remix bundles monorepo packages which are always
// sym-linked and can't be hoisted. You could also manually name packages
// e.g. ["@webstudio-is/ui", ...]
serverDependenciesToBundle: [
/@webstudio-is\/(?!prisma-client)/,
"pretty-bytes",
"djb2a",
"nanoevents",
"nanostores",
"@nanostores/react",
/micromark/,
"decode-named-character-reference",
"character-entities",
/mdast-/,
"unist-util-stringify-position",
],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
watchPaths: () => {
return ["../../packages/**/lib/**.js"];
},
future: {
v2_errorBoundary: true,
v2_routeConvention: true,
v2_meta: true,
v2_normalizeFormMethod: true,
},
};