Skip to content

Commit 85a29f1

Browse files
committed
fix: do not use dot-prefixed paths
1 parent d898976 commit 85a29f1

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/docs/src/pages/api/Defer.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const routes = [
8585

8686
## How It Works
8787

88-
By default, FUNSTACK Static puts the entire app (`<App />`) into one RSC payload (`/.funstack/index.txt`). The client fetches this payload to render your SPA.
88+
By default, FUNSTACK Static puts the entire app (`<App />`) into one RSC payload (`/funstack__/index.txt`). The client fetches this payload to render your SPA.
8989

90-
When you use `defer(Component)`, FUNSTACK Static creates **additional RSC payloads** for the rendering result of `<Component />`. This results in an additional emit of RSC payload files like `/.funstack/rsc/fun:rsc-payload/b5698be72eea3c37`.
90+
When you use `defer(Component)`, FUNSTACK Static creates **additional RSC payloads** for the rendering result of `<Component />`. This results in an additional emit of RSC payload files like `/funstack__/rsc/fun:rsc-payload/b5698be72eea3c37`.
9191

9292
In the main RSC payload, the `defer` call is replaced with a client component `<ClientWrapper moduleId="fun:rsc-payload/b5698be72eea3c37" />`. This component is responsible for fetching the additional RSC payload from client and renders it when it's ready.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* Path to RSC payload in build output
33
*/
4-
export const rscPayloadPath = "/.funstack/index.txt";
4+
export const rscPayloadPath = "/funstack__/index.txt";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* Path of RSC stream endpoint in development environment.
33
*/
4-
export const devMainRscPath = "/.funstack/rsc";
4+
export const devMainRscPath = "/funstack__/rsc";

packages/static/src/rsc/rscModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function getPayloadIDFor(rawId: string): string {
1111
return `${rscPayloadIDPrefix}${rawId}`;
1212
}
1313

14-
const rscModulePathPrefix = "/.funstack/rsc/";
14+
const rscModulePathPrefix = "/funstack__/rsc/";
1515
const rscModulePathSuffix = ".txt";
1616

1717
export function getModulePathFor(id: string): string {

0 commit comments

Comments
 (0)