Initial boiler plate project
This commit is contained in:
9
node_modules/next/dist/esm/client/components/bailout-to-client-rendering.js
generated
vendored
Normal file
9
node_modules/next/dist/esm/client/components/bailout-to-client-rendering.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { BailoutToCSRError } from "../../shared/lib/lazy-dynamic/bailout-to-csr";
|
||||
import { staticGenerationAsyncStorage } from "./static-generation-async-storage.external";
|
||||
export function bailoutToClientRendering(reason) {
|
||||
const staticGenerationStore = staticGenerationAsyncStorage.getStore();
|
||||
if (staticGenerationStore == null ? void 0 : staticGenerationStore.forceStatic) return;
|
||||
if (staticGenerationStore == null ? void 0 : staticGenerationStore.isStaticGeneration) throw new BailoutToCSRError(reason);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=bailout-to-client-rendering.js.map
|
||||
Reference in New Issue
Block a user