Home / Function/ buildISRFolder() — astro Function Reference

buildISRFolder() — astro Function Reference

Architecture documentation for the buildISRFolder() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8053f98f_c4a0_24d5_fb52_9329536f5a87["buildISRFolder()"]
  b9cdb338_a865_cfb5_1987_5fa8663f4726["VercelBuilder"]
  8053f98f_c4a0_24d5_fb52_9329536f5a87 -->|defined in| b9cdb338_a865_cfb5_1987_5fa8663f4726
  0219003e_0431_f5b2_9b31_f2db70f1ade0["vercelAdapter()"]
  0219003e_0431_f5b2_9b31_f2db70f1ade0 -->|calls| 8053f98f_c4a0_24d5_fb52_9329536f5a87
  b08d0cb6_4d5e_9fe0_317b_85cd9ce4765d["buildServerlessFolder()"]
  8053f98f_c4a0_24d5_fb52_9329536f5a87 -->|calls| b08d0cb6_4d5e_9fe0_317b_85cd9ce4765d
  style 8053f98f_c4a0_24d5_fb52_9329536f5a87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/vercel/src/index.ts lines 695–708

	async buildISRFolder(entry: URL, functionName: string, isr: VercelISRConfig, root: URL) {
		await this.buildServerlessFolder(entry, functionName, root);
		const prerenderConfig = new URL(
			`./functions/${functionName}.prerender-config.json`,
			this.outDir,
		);
		// https://vercel.com/docs/build-output-api/v3/primitives#prerender-configuration-file
		await writeJson(prerenderConfig, {
			expiration: isr.expiration ?? false,
			bypassToken: isr.bypassToken,
			allowQuery: [ASTRO_PATH_PARAM],
			passQuery: true,
		});
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildISRFolder() do?
buildISRFolder() is a function in the astro codebase, defined in packages/integrations/vercel/src/index.ts.
Where is buildISRFolder() defined?
buildISRFolder() is defined in packages/integrations/vercel/src/index.ts at line 695.
What does buildISRFolder() call?
buildISRFolder() calls 1 function(s): buildServerlessFolder.
What calls buildISRFolder()?
buildISRFolder() is called by 1 function(s): vercelAdapter.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free