You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: types.ts
+27-13Lines changed: 27 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -6,22 +6,36 @@ export interface AlephEnv {
6
6
}
7
7
8
8
exportinterfaceSSROptions{
9
-
readonlyfallback?: string// default is '_fallback.html'
10
-
readonlyinclude?: RegExp[]
11
-
readonlyexclude?: RegExp[]
12
-
readonlystaticPaths?: string[]
9
+
fallback?: string// default is '_fallback.html'
10
+
include?: RegExp[]
11
+
exclude?: RegExp[]
12
+
staticPaths?: string[]
13
13
}
14
14
15
+
/** Config for Aleph.js */
15
16
exportinterfaceConfig{
16
-
srcDir: string
17
-
outputDir: string
18
-
baseUrl: string
19
-
defaultLocale: string
20
-
locales: string[]
21
-
ssr: boolean|SSROptions
22
-
buildTarget: string
23
-
sourceMap: boolean
24
-
env: Record<string,string>
17
+
/** `srcDir` to put all your app `pages`, app.tsx, etc directories (default is '/') */
18
+
srcDir?: string
19
+
/** `outputDir` specifies the output directory for `build` command (default is 'dist') */
20
+
outputDir?: string
21
+
/** `baseUrl` specifies the path prefix for the application (default is '/') */
22
+
baseUrl?: string
23
+
/** `reactUrl` specifies the **react** url (default is 'https://esm.sh/[email protected]') */
24
+
reactUrl?: string
25
+
/** `reactDomUrl` specifies the **react-dom** url (default is 'https://esm.sh/[email protected]') */
26
+
reactDomUrl?: string
27
+
/** `defaultLocale` specifies the default locale of the application (default is 'en') */
28
+
defaultLocale?: string
29
+
/** A list of locales */
30
+
locales?: string[]
31
+
/** Option for **SSR** */
32
+
ssr?: boolean|SSROptions
33
+
/** `buildTarget` specifies the build taget for **tsc** (possible values: `ES2015-ES2020, ESNext`, default is ES2015 for production and ES2018 for development) */
34
+
buildTarget?: string
35
+
/** Enable sourceMap in **production** mode (default is false) */
36
+
sourceMap?: boolean
37
+
/** `env` defines the `Window.ALEPH.ENV` object in the application */
0 commit comments