hatch-surf/node_modules/next/dist/esm/client/next-turbopack.js
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

34 lines
1.2 KiB
JavaScript

// A client-side entry point for Turbopack builds. Includes logic to load chunks,
// but does not include development-time features like hot module reloading.
import './register-deployment-id-global';
import '../lib/require-instrumentation-client';
// TODO: Remove use of `any` type.
import { initialize, version, router, emitter, hydrate } from './';
// TODO: This seems necessary, but is a module in the `dev` directory.
import { displayContent } from './dev/fouc';
window.next = {
version,
turbopack: true,
// router is initialized later so it has to be live-binded
get router () {
return router;
},
emitter
};
self.__next_set_public_path__ = ()=>{};
self.__webpack_hash__ = '';
initialize({}).then(()=>{
// for the page loader
;
self.__turbopack_load_page_chunks__ = (page, chunksData)=>{
const chunkPromises = chunksData.map((c)=>__turbopack_load__(c));
Promise.all(chunkPromises).catch((err)=>console.error('failed to load chunks for page ' + page, err));
};
return hydrate({
beforeRender: displayContent
});
}).catch((err)=>{
console.error('Error was not caught', err);
});
//# sourceMappingURL=next-turbopack.js.map