This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
apps: [ | |
{ | |
name: "Express", | |
script: "server/index.js", | |
watch: ["server/index.js"], | |
watch_options: { | |
followSymlinks: false, | |
}, | |
env: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-router/umd/react-router.development.js b/node_modules/react-router/umd/react-router.development.js | |
index bfb1dc6..6aa8ba5 100644 | |
--- a/node_modules/react-router/umd/react-router.development.js | |
+++ b/node_modules/react-router/umd/react-router.development.js | |
@@ -820,7 +820,9 @@ | |
: // Otherwise, at least match a word boundary. This restricts parent | |
// routes to matching only their own words and nothing more, e.g. parent | |
// route "/home" should not match "/home2". | |
- "(?:\\b|$)"; | |
+ // PATCH: return "" instead of "\\b" because it fails to match leading . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@remix-run/server-runtime/server.js b/node_modules/@remix-run/server-runtime/server.js | |
index eef3403..d483581 100644 | |
--- a/node_modules/@remix-run/server-runtime/server.js | |
+++ b/node_modules/@remix-run/server-runtime/server.js | |
@@ -226,7 +226,9 @@ async function handleDocumentRequest(request, loadContext, build, platform, rout | |
componentDidCatchEmulator.catch = { | |
status: requestState === "no-match" ? 404 : 405, | |
statusText: requestState === "no-match" ? "Not Found" : "Method Not Allowed", | |
- data: null | |
+ data: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var node = require('@remix-run/node'); | |
node.installGlobals(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handleRequest(req, res, next) { | |
let build = require('./build') | |
if (MODE !== 'production') { | |
purgeRequireCache() | |
} | |
if (requireAuthentication(req)) { | |
return unauthenticated(req, res) | |
} | |
return createRequestHandler({ | |
build, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function () { | |
return process.env.NODE_ENV === 'development' ? ( | |
<script src="http://localhost:35729/livereload.js?snipver=1"></script> | |
) : null | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
const electron = require("electron"); | |
const { app, BrowserWindow, dialog, Menu } = electron; | |
const { startServer } = require("./server"); | |
let win; | |
let server; | |
async function main() { | |
await app.whenReady(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@remix-run/dev/compiler.js b/node_modules/@remix-run/dev/compiler.js | |
index 9bbf9b1..783ccad 100644 | |
--- a/node_modules/@remix-run/dev/compiler.js | |
+++ b/node_modules/@remix-run/dev/compiler.js | |
@@ -371,7 +371,7 @@ async function createServerBuild(config, options, assetsManifestPromiseRef) { | |
bundle: true, | |
logLevel: "silent", | |
incremental: options.incremental, | |
- sourcemap: options.sourcemap ? "inline" : false, | |
+ sourcemap: options.sourcemap, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
GOTO start | |
:find_dp0 | |
SET dp0=%~dp0 | |
EXIT /b | |
:start | |
SETLOCAL | |
CALL :find_dp0 | |
IF EXIST "%dp0%\node.exe" ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const ErrorBoundary = ({ error }: any) => { | |
const [source, setSource] = useState('') | |
const lines = error.stack.split('\n') | |
const match = lines[1].match(/(?<path>.+):(?<line>\d+):(?<column>\d+)/) | |
let path = '' | |
let linenumber = 0 | |
let column = 0 | |
if (match) { | |
path = match.groups.path | |
linenumber = Number(match.groups.line) |