@lukoweb/apitogo 0.2.35 → 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.
Files changed (2) hide show
  1. package/dist/cli/cli.js +12 -8
  2. package/package.json +1 -1
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.35",
10078
+ version: "0.2.36",
10079
10079
  type: "module",
10080
10080
  sideEffects: [
10081
10081
  "**/*.css",
@@ -29235,14 +29235,18 @@ function formatStatus(output4) {
29235
29235
  import { access as access14, writeFile as writeFile26 } from "node:fs/promises";
29236
29236
  import path84 from "node:path";
29237
29237
  var STATIC_WEB_CONFIG_FILE = "staticwebapp.config.json";
29238
- var STATIC_WEB_CONFIG_VERSION = 1;
29238
+ var STATIC_WEB_CONFIG_VERSION = 2;
29239
+ var CLIENT_ONLY_ROUTES = [
29240
+ "/oauth/callback",
29241
+ "/oauth/callback/*"
29242
+ ];
29239
29243
  var DEFAULT_STATIC_WEB_CONFIG = {
29240
- navigationFallback: {
29241
- rewrite: "/index.html",
29242
- exclude: [
29243
- "/assets/*",
29244
- "/*.{png,jpg,jpeg,gif,svg,ico,css,js,mjs,json,txt,xml,webmanifest,woff,woff2,map}"
29245
- ]
29244
+ routes: CLIENT_ONLY_ROUTES.map((route) => ({
29245
+ route,
29246
+ rewrite: "/index.html"
29247
+ })),
29248
+ responseOverrides: {
29249
+ "404": { rewrite: "/404.html" }
29246
29250
  }
29247
29251
  };
29248
29252
  async function ensureStaticWebConfig(buildDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",