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
SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en https://kit.svelte.dev/. Esta guía es válida para SvelteKit 2.5.7 y Svelte 4.2.15.
12
+
SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en https://svelte.dev/. Esta guía es válida para SvelteKit 2.5.7 y Svelte 4.2.15.
13
13
14
14
## Checklist
15
15
16
-
- Usa [SSG](https://kit.svelte.dev/docs/adapter-static) y/o [SPA](https://kit.svelte.dev/docs/single-page-apps) a través de `static-adapter`. Tauri no soporta oficialmente soluciones basadas en el servidor.
16
+
- Usa [SSG](https://svelte.dev/docs/kit/adapter-static) y/o [SPA](https://svelte.dev/docs/kit/single-page-apps) a través de `static-adapter`. Tauri no soporta oficialmente soluciones basadas en el servidor.
17
17
- Usa `build/` en lugar de `frontendDist` en `tauri.conf.json`.
18
18
19
19
## Ejemplo de Configuración
@@ -108,7 +108,7 @@ SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en http
@@ -130,8 +130,8 @@ SvelteKit es un meta framework para Svelte. Aprende más sobre SvelteKit en http
130
130
exportconst ssr =false;
131
131
```
132
132
133
-
Ten en cuenta que `static-adapter` no requiere desactivar el SSR para toda la aplicación, pero permite usar APIs que dependen del objeto global window (como la API de Tauri) sin necesidad de realizar [comprobaciones del lado del cliente](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
133
+
Ten en cuenta que `static-adapter` no requiere desactivar el SSR para toda la aplicación, pero permite usar APIs que dependen del objeto global window (como la API de Tauri) sin necesidad de realizar [comprobaciones del lado del cliente](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
134
134
135
-
Además, si prefieres el modo de Aplicación de Página Única (SPA) en lugar de SSG, puedes cambiar las configuraciones del adaptador y el archivo `+layout.ts` según la [documentación del adaptador](https://kit.svelte.dev/docs/single-page-apps).
135
+
Además, si prefieres el modo de Aplicación de Página Única (SPA) en lugar de SSG, puedes cambiar las configuraciones del adaptador y el archivo `+layout.ts` según la [documentación del adaptador](https://svelte.dev/docs/kit/single-page-apps).
SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://kit.svelte.dev/. This guide is accurate as of SvelteKit 2.20.4 / Svelte 5.25.8.
12
+
SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://svelte.dev/. This guide is accurate as of SvelteKit 2.20.4 / Svelte 5.25.8.
13
13
14
14
## Checklist
15
15
16
-
- Use [SSG](https://kit.svelte.dev/docs/adapter-static) and [SPA](https://svelte.dev/docs/kit/single-page-apps) via `static-adapter`. Tauri doesn't support server-based solutions.
16
+
- Use [SSG](https://svelte.dev/docs/kit/adapter-static) and [SPA](https://svelte.dev/docs/kit/single-page-apps) via `static-adapter`. Tauri doesn't support server-based solutions.
17
17
- If using SSG **with prerendering**, be aware that `load` functions will not have access to tauri APIs during the build process of your app. Using SPA mode (without prerendering) is recommended since the load functions will only run in the webview with access to tauri APIs.
18
18
- Use `build/` as `frontendDist` in `tauri.conf.json`.
19
19
@@ -108,7 +108,7 @@ SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://
@@ -131,7 +131,7 @@ SvelteKit is a meta framework for Svelte. Learn more about SvelteKit at https://
131
131
exportconst ssr =false;
132
132
```
133
133
134
-
Note that `static-adapter` doesn't require you to disable SSR for the whole app but it makes it possible to use APIs that depend on the global window object (like Tauri's API) without [Client-side checks](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
134
+
Note that `static-adapter` doesn't require you to disable SSR for the whole app but it makes it possible to use APIs that depend on the global window object (like Tauri's API) without [Client-side checks](https://svelte.dev/docs/kit/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window).
135
135
136
136
Furthermore, if you prefer Static Site Generation (SSG) over Single-Page Application (SPA) mode, you can change the adapter configurations and `+layout.ts` according to the [adapter docs](https://svelte.dev/docs/kit/adapter-static).
0 commit comments