Skip to content

Commit 0002ecf

Browse files
committed
add template for adding client-side RewriteFrames values
1 parent 188c240 commit 0002ecf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/nextjs/rollup.npm.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default [
2121
makeBaseNPMConfig({
2222
entrypoints: [
2323
'src/config/templates/serverRewriteFramesPrefixLoaderTemplate.ts',
24+
'src/config/templates/clientRewriteFramesPrefixLoaderTemplate.ts',
2425
'src/config/templates/pageProxyLoaderTemplate.ts',
2526
'src/config/templates/apiProxyLoaderTemplate.ts',
2627
],
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable no-restricted-globals */
2+
/* eslint-disable @typescript-eslint/no-explicit-any */
3+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
4+
5+
(window as any).__rewriteFramesAssetPrefixPath__ = '__ASSET_PREFIX_PATH__';
6+
7+
// We need this to make this file an ESM module, which TS requires when using `isolatedModules`, but it doesn't affect
8+
// the end result - Rollup recognizes that it's a no-op and doesn't include it when building our code.
9+
export {};

0 commit comments

Comments
 (0)