Skip to content

Commit bd62abe

Browse files
committed
just loadconfig again instead of checking anything else
1 parent a2dc2eb commit bd62abe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,13 @@ function getCustomNextConfig(importStatement: string, fileExtension: string) {
100100
}
101101
: fahOptimizedConfig(originalConfig);
102102
103-
const firebaseAppHostingSymbol = Symbol("__createdByFirebaseAppHosting__");
104-
config[firebaseAppHostingSymbol] = true;
105-
106103
${fileExtension === ".mjs" ? "export default config;" : "module.exports = config;"}
107104
`;
108105
}
109106

110107
export async function validateNextConfigOverrides(root: string, projectRoot: string) {
111108
try {
112-
const overriddenConfig = await loadConfig(root, projectRoot);
113-
if (!overriddenConfig.__createdByFirebaseAppHosting__) {
114-
throw new Error("Firebase App Hosting overrides are missing");
115-
}
109+
await loadConfig(root, projectRoot);
116110
} catch (error) {
117111
throw new Error(
118112
`Invalid Next.js config: ${error instanceof Error ? error.message : "Unknown error"}`,

0 commit comments

Comments
 (0)