@lukoweb/apitogo 0.2.34 → 0.2.36
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/cli/cli.js
CHANGED
|
@@ -10075,7 +10075,7 @@ import {
|
|
|
10075
10075
|
// package.json
|
|
10076
10076
|
var package_default = {
|
|
10077
10077
|
name: "@lukoweb/apitogo",
|
|
10078
|
-
version: "0.2.
|
|
10078
|
+
version: "0.2.36",
|
|
10079
10079
|
type: "module",
|
|
10080
10080
|
sideEffects: [
|
|
10081
10081
|
"**/*.css",
|
|
@@ -15026,11 +15026,15 @@ function portalBuildStep(context, options = {}, build2 = runBuild) {
|
|
|
15026
15026
|
),
|
|
15027
15027
|
run: async () => {
|
|
15028
15028
|
const originalCwd = process.cwd();
|
|
15029
|
+
const originalNodeEnv = process.env.NODE_ENV;
|
|
15030
|
+
process.env.NODE_ENV = "production";
|
|
15029
15031
|
process.chdir(root);
|
|
15030
15032
|
try {
|
|
15031
15033
|
await build2({ dir: root, jsonOnly: options.jsonOnly });
|
|
15032
15034
|
} finally {
|
|
15033
15035
|
process.chdir(originalCwd);
|
|
15036
|
+
if (originalNodeEnv === void 0) delete process.env.NODE_ENV;
|
|
15037
|
+
else process.env.NODE_ENV = originalNodeEnv;
|
|
15034
15038
|
}
|
|
15035
15039
|
await rm8(buildDir, { recursive: true, force: true });
|
|
15036
15040
|
await mkdir12(path48.dirname(buildDir), { recursive: true });
|
|
@@ -29231,14 +29235,18 @@ function formatStatus(output4) {
|
|
|
29231
29235
|
import { access as access14, writeFile as writeFile26 } from "node:fs/promises";
|
|
29232
29236
|
import path84 from "node:path";
|
|
29233
29237
|
var STATIC_WEB_CONFIG_FILE = "staticwebapp.config.json";
|
|
29234
|
-
var STATIC_WEB_CONFIG_VERSION =
|
|
29238
|
+
var STATIC_WEB_CONFIG_VERSION = 2;
|
|
29239
|
+
var CLIENT_ONLY_ROUTES = [
|
|
29240
|
+
"/oauth/callback",
|
|
29241
|
+
"/oauth/callback/*"
|
|
29242
|
+
];
|
|
29235
29243
|
var DEFAULT_STATIC_WEB_CONFIG = {
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29240
|
-
|
|
29241
|
-
|
|
29244
|
+
routes: CLIENT_ONLY_ROUTES.map((route) => ({
|
|
29245
|
+
route,
|
|
29246
|
+
rewrite: "/index.html"
|
|
29247
|
+
})),
|
|
29248
|
+
responseOverrides: {
|
|
29249
|
+
"404": { rewrite: "/404.html" }
|
|
29242
29250
|
}
|
|
29243
29251
|
};
|
|
29244
29252
|
async function ensureStaticWebConfig(buildDir) {
|
package/package.json
CHANGED
|
Binary file
|