Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 0b46ea9

Browse files
committed
Reproduce bug
sveltejs/kit#10332
1 parent a1b3074 commit 0b46ea9

9 files changed

+222
-48
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BUILD_ADAPTER=static

.eslintignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ node_modules
33
/build
44
/.svelte-kit
55
/package
6-
.env
7-
.env.*
8-
!.env.example
6+
.env.local
7+
.env.*.local
98

109
# Ignore files for PNPM, NPM and YARN
1110
pnpm-lock.yaml

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ node_modules
33
/build
44
/.svelte-kit
55
/package
6-
.env
7-
.env.*
6+
.env.local
7+
.env.*.local
88
!.env.example
99
vite.config.js.timestamp-*
1010
vite.config.ts.timestamp-*

.prettierignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ node_modules
33
/build
44
/.svelte-kit
55
/package
6-
.env
7-
.env.*
8-
!.env.example
6+
.env.local
7+
.env.*.local
98

109
# Ignore files for PNPM, NPM and YARN
1110
pnpm-lock.yaml

README.md

+8-37
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
1-
# create-svelte
2-
3-
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4-
5-
## Creating a project
6-
7-
If you're seeing this, you've probably already done this step. Congrats!
8-
9-
```bash
10-
# create a new project in the current directory
11-
npm create svelte@latest
12-
13-
# create a new project in my-app
14-
npm create svelte@latest my-app
15-
```
16-
17-
## Developing
18-
19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20-
21-
```bash
22-
npm run dev
23-
24-
# or start the server and open the app in a new browser tab
25-
npm run dev -- --open
26-
```
27-
28-
## Building
29-
30-
To create a production version of your app:
31-
32-
```bash
33-
npm run build
1+
# Bug with `adapter-static` and `+page.server.ts` / `+layout.server.ts`
2+
3+
```sh
4+
git clone https://github.com/NatoBoram/bug-report-sveltekit-ssr-csr.git
5+
cd bug-report-sveltekit-ssr-csr
6+
pnpm i
7+
pnpm build
8+
pnpx http-server ./build
349
```
35-
36-
You can preview the production build with `npm run preview`.
37-
38-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
},
1717
"devDependencies": {
1818
"@playwright/test": "^1.28.1",
19-
"@sveltejs/adapter-auto": "^2.0.0",
19+
"@sveltejs/adapter-auto": "^2.1.0",
20+
"@sveltejs/adapter-node": "^1.3.1",
21+
"@sveltejs/adapter-static": "^2.0.2",
2022
"@sveltejs/kit": "^1.20.4",
2123
"@typescript-eslint/eslint-plugin": "^5.45.0",
2224
"@typescript-eslint/parser": "^5.45.0",

0 commit comments

Comments
 (0)