hatch-surf/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.d.ts
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

48 lines
1.7 KiB
TypeScript

import type webpack from 'next/dist/compiled/webpack/webpack';
import { type ValueOf } from '../../../../shared/lib/constants';
import type { ModuleTuple, CollectedMetadata } from '../metadata/types';
import type { NextConfig } from '../../../../server/config-shared';
import type { PageExtensions } from '../../../page-extensions-type';
export type AppLoaderOptions = {
name: string;
page: string;
pagePath: string;
appDir: string;
appPaths: readonly string[] | null;
allNormalizedAppPaths: readonly string[] | null;
preferredRegion: string | string[] | undefined;
pageExtensions: PageExtensions;
assetPrefix: string;
rootDir?: string;
tsconfigPath?: string;
isDev?: true;
basePath: string;
nextConfigOutput?: NextConfig['output'];
middlewareConfig: string;
isGlobalNotFoundEnabled: true | undefined;
};
type AppLoader = webpack.LoaderDefinitionFunction<AppLoaderOptions>;
declare const FILE_TYPES: {
readonly 'not-found': "not-found";
readonly forbidden: "forbidden";
readonly unauthorized: "unauthorized";
readonly layout: "layout";
readonly template: "template";
readonly error: "error";
readonly loading: "loading";
readonly 'global-error': "global-error";
readonly 'global-not-found': "global-not-found";
};
export type MetadataResolver = (dir: string, filename: string, extensions: readonly string[]) => Promise<string[]>;
export type AppDirModules = {
readonly [moduleKey in ValueOf<typeof FILE_TYPES>]?: ModuleTuple;
} & {
readonly page?: ModuleTuple;
} & {
readonly metadata?: CollectedMetadata;
} & {
readonly defaultPage?: ModuleTuple;
};
declare const nextAppLoader: AppLoader;
export default nextAppLoader;