@rpcbase/server 0.498.0 → 0.499.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4385,7 +4385,7 @@ const FALLBACK_ERROR_TEMPLATE_START = `<!doctype html><html lang="en"><head><met
|
|
|
4385
4385
|
const FALLBACK_ERROR_TEMPLATE_END = "</main></body></html>";
|
|
4386
4386
|
const isProduction = env.NODE_ENV === "production";
|
|
4387
4387
|
const skipViteServe = ["1", "yes", "true"].includes(env.SKIP_VITE_SERVE);
|
|
4388
|
-
const templateHtml = isProduction ? readFileSync("./build/dist/client/src/client/index.html", "utf-8") : "";
|
|
4388
|
+
const templateHtml = isProduction || skipViteServe ? readFileSync("./build/dist/client/src/client/index.html", "utf-8") : "";
|
|
4389
4389
|
const handleRedirectionResponse = (res, redirectResponse, location) => {
|
|
4390
4390
|
res.status(redirectResponse.status || 302);
|
|
4391
4391
|
try {
|