Skip to content

Commit 4675e3e

Browse files
authored
Revert "Filter out node_modules" (#350)
* Revert "Filter out node_modules (#346)" This reverts commit 96c420b. * bump nextjs adapter version to 14.0.16
1 parent 96c420b commit 4675e3e

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@apphosting/adapter-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apphosting/adapter-nextjs",
3-
"version": "14.0.15",
3+
"version": "14.0.16",
44
"main": "dist/index.js",
55
"description": "Experimental addon to the Firebase CLI to add web framework support",
66
"repository": {

packages/@apphosting/adapter-nextjs/src/bin/build.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ metadata:
6262
adapterVersion: ${adapterMetadata.adapterVersion}
6363
framework: nextjs
6464
frameworkVersion: ${defaultNextVersion}
65-
outputFiles:
66-
serverApp:
67-
include:
68-
- .next/standalone
6965
`,
7066
};
7167
validateTestFiles(tmpDir, expectedFiles);

packages/@apphosting/adapter-nextjs/src/utils.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ async function moveResources(
151151
for (const path of pathsToMove) {
152152
const isbundleYamlDir = join(appDir, path) === dirname(bundleYamlPath);
153153
const existsInOutputBundle = await exists(join(outputBundleAppDir, path));
154-
// Keep apphosting.yaml files in the root directory still, as later steps expect them to be there
155-
const isApphostingYaml = path === "apphosting_preprocessed" || path === "apphosting.yaml";
156-
if (!isbundleYamlDir && !existsInOutputBundle && !isApphostingYaml) {
154+
if (!isbundleYamlDir && !existsInOutputBundle) {
157155
await move(join(appDir, path), join(outputBundleAppDir, path));
158156
}
159157
}
@@ -192,11 +190,6 @@ async function generateBundleYaml(
192190
framework: "nextjs",
193191
frameworkVersion: nextVersion,
194192
},
195-
outputFiles: {
196-
serverApp: {
197-
include: [".next/standalone"], // we're only including the standalone directory to exclude the node_modules folder specifically
198-
},
199-
},
200193
};
201194
await writeFile(opts.bundleYamlPath, yamlStringify(outputBundle));
202195
return;

0 commit comments

Comments
 (0)