@gigadrive/network-config 5.5.2 → 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/dist/nextjs-cache-components-handler.js +25 -6
- package/dist/nextjs-cache-components-handler.js.map +1 -1
- package/dist/nextjs-cache-components-handler.mjs +25 -6
- package/dist/nextjs-cache-components-handler.mjs.map +1 -1
- package/dist/nextjs-cache-handler.js +4 -4
- package/dist/nextjs-cache-handler.js.map +1 -1
- package/dist/nextjs-cache-handler.mjs +4 -4
- package/dist/nextjs-cache-handler.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2042,6 +2042,7 @@ var buildStandalonePublicAssets = Effect13.fn("nextjs.buildStandalonePublicAsset
|
|
|
2042
2042
|
return { assetPaths, assetOverrides, filePathMap };
|
|
2043
2043
|
});
|
|
2044
2044
|
var createStaticExportConfig = Effect13.fn("nextjs.createStaticExportConfig")(function* (defaults, projectFolder) {
|
|
2045
|
+
const fs = yield* FileSystem11.FileSystem;
|
|
2045
2046
|
const pathService = yield* Path10.Path;
|
|
2046
2047
|
const outputDirectory = pathService.join(projectFolder, "out");
|
|
2047
2048
|
const files = yield* getDefaultPathMap(outputDirectory);
|
|
@@ -2051,7 +2052,8 @@ var createStaticExportConfig = Effect13.fn("nextjs.createStaticExportConfig")(fu
|
|
|
2051
2052
|
const projectRelativePath = toPortablePath(pathService.relative(projectFolder, absolutePath));
|
|
2052
2053
|
const outputRelativePath = toPortablePath(pathService.relative(outputDirectory, absolutePath));
|
|
2053
2054
|
assetPaths.push(projectRelativePath);
|
|
2054
|
-
const
|
|
2055
|
+
const fromPublic = outputRelativePath.endsWith(".html") && (yield* fs.exists(pathService.join(projectFolder, "public", outputRelativePath)).pipe(Effect13.catchAll(() => Effect13.succeed(false))));
|
|
2056
|
+
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;
|
|
2055
2057
|
assetOverrides[projectRelativePath] = { path: routePath };
|
|
2056
2058
|
}
|
|
2057
2059
|
return {
|