@gigadrive/network-config 5.5.3 → 5.5.4
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs-adapter.d.mts +0 -10
- package/dist/nextjs-adapter.d.ts +0 -10
- package/dist/nextjs-adapter.js +46 -3
- package/dist/nextjs-adapter.js.map +1 -1
- package/dist/nextjs-adapter.mjs +46 -3
- package/dist/nextjs-adapter.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2150,6 +2150,7 @@ var buildStandalonePublicAssets = import_effect17.Effect.fn("nextjs.buildStandal
|
|
|
2150
2150
|
return { assetPaths, assetOverrides, filePathMap };
|
|
2151
2151
|
});
|
|
2152
2152
|
var createStaticExportConfig = import_effect17.Effect.fn("nextjs.createStaticExportConfig")(function* (defaults, projectFolder) {
|
|
2153
|
+
const fs = yield* import_platform11.FileSystem.FileSystem;
|
|
2153
2154
|
const pathService = yield* import_platform11.Path.Path;
|
|
2154
2155
|
const outputDirectory = pathService.join(projectFolder, "out");
|
|
2155
2156
|
const files = yield* getDefaultPathMap(outputDirectory);
|
|
@@ -2159,7 +2160,8 @@ var createStaticExportConfig = import_effect17.Effect.fn("nextjs.createStaticExp
|
|
|
2159
2160
|
const projectRelativePath = toPortablePath(pathService.relative(projectFolder, absolutePath));
|
|
2160
2161
|
const outputRelativePath = toPortablePath(pathService.relative(outputDirectory, absolutePath));
|
|
2161
2162
|
assetPaths.push(projectRelativePath);
|
|
2162
|
-
const
|
|
2163
|
+
const fromPublic = outputRelativePath.endsWith(".html") && (yield* fs.exists(pathService.join(projectFolder, "public", outputRelativePath)).pipe(import_effect17.Effect.catchAll(() => import_effect17.Effect.succeed(false))));
|
|
2164
|
+
const routePath = outputRelativePath === "index.html" ? "" : outputRelativePath.endsWith("/index.html") ? outputRelativePath.slice(0, -"/index.html".length) : outputRelativePath.endsWith(".html") && !fromPublic ? outputRelativePath.slice(0, -".html".length) : outputRelativePath;
|
|
2163
2165
|
assetOverrides[projectRelativePath] = { path: routePath };
|
|
2164
2166
|
}
|
|
2165
2167
|
return {
|