Skip to content

Commit a91da16

Browse files
author
Luca Forstner
committed
Rename templates
1 parent 7e5765a commit a91da16

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

packages/nextjs/rollup.npm.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ export default [
1414
),
1515
...makeNPMConfigVariants(
1616
makeBaseNPMConfig({
17-
entrypoints: [
18-
'src/config/templates/pageProxyLoaderTemplate.ts',
19-
'src/config/templates/apiProxyLoaderTemplate.ts',
20-
],
17+
entrypoints: ['src/config/templates/pageWrapperTemplate.ts', 'src/config/templates/apiWrapperTemplate.ts'],
2118

2219
packageSpecificConfig: {
2320
output: {

packages/nextjs/src/config/loaders/proxyLoader.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ export default async function proxyLoader(this: LoaderThis<LoaderOptions>, userC
4444
return userCode;
4545
}
4646

47-
const templateFile = parameterizedRoute.startsWith('/api')
48-
? 'apiProxyLoaderTemplate.js'
49-
: 'pageProxyLoaderTemplate.js';
47+
const templateFile = parameterizedRoute.startsWith('/api') ? 'apiWrapperTemplate.js' : 'pageWrapperTemplate.js';
5048
const templatePath = path.resolve(__dirname, `../templates/${templateFile}`);
5149
let templateCode = fs.readFileSync(templatePath, { encoding: 'utf8' });
5250

0 commit comments

Comments
 (0)