Skip to content

Commit 70426be

Browse files
authored
feat(site): Deploy to edge (#8873)
* Try edge * Fix errors * Improvements * Minor fixes * Simplify docs layout logic * Persist session true * try regions all * Push new promise-based infra * pnpm install * Remote debugging * Refine * try to disable prerender for examples * text * Weird hack * url * log params * Try param matcher * try some restructuring * Leftover * remove console log * More async, remove node-fetch * Fix * New fixes * Undo changes * back to site-kit next 18
1 parent 76baa07 commit 70426be

File tree

34 files changed

+254
-238
lines changed

34 files changed

+254
-238
lines changed

documentation/docs/02-template-syntax/05-element-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Transitions are local by default (in Svelte 3, they were global by default). Loc
521521
{/if}
522522
```
523523

524-
> By default intro transitions will not play on first render. You can modify this behaviour by setting `intro: true` when you [create a component](/docs#run-time-client-side-component-api) and marking the transition as `global`.
524+
> By default intro transitions will not play on first render. You can modify this behaviour by setting `intro: true` when you [create a component](/docs/client-side-component-api) and marking the transition as `global`.
525525
526526
## Transition parameters
527527

pnpm-lock.yaml

Lines changed: 41 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/svelte.dev/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
"devDependencies": {
3030
"@resvg/resvg-js": "^2.4.1",
3131
"@sveltejs/adapter-vercel": "^3.0.1",
32-
"@sveltejs/kit": "^1.21.0",
32+
"@sveltejs/kit": "^1.22.0",
3333
"@sveltejs/site-kit": "6.0.0-next.20",
3434
"@sveltejs/vite-plugin-svelte": "^2.4.2",
35+
"@types/cookie": "^0.5.1",
3536
"@types/marked": "^5.0.0",
36-
"@types/node": "^20.3.2",
37+
"@types/node": "^20.3.3",
3738
"@types/prettier": "^2.7.3",
3839
"degit": "^2.8.4",
3940
"dotenv": "^16.3.1",
4041
"jimp": "^0.22.8",
41-
"magic-string": "^0.30.0",
42+
"magic-string": "^0.30.1",
4243
"marked": "^5.1.0",
43-
"node-fetch": "^3.3.1",
4444
"prettier": "^2.8.8",
4545
"prettier-plugin-svelte": "^2.10.1",
4646
"sass": "^1.63.6",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { fileURLToPath } from 'node:url';
22
import { get_examples_data } from '../src/lib/server/examples/index.js';
3-
import fs from 'node:fs';
3+
import { mkdir, writeFile } from 'node:fs/promises';
44

5-
const examples_data = get_examples_data(
5+
const examples_data = await get_examples_data(
66
fileURLToPath(new URL('../../../documentation/examples', import.meta.url))
77
);
88

99
try {
10-
fs.mkdirSync(new URL('../src/lib/generated/', import.meta.url), { recursive: true });
10+
await mkdir(new URL('../src/lib/generated/', import.meta.url), { recursive: true });
1111
} catch {}
1212

13-
fs.writeFileSync(
13+
writeFile(
1414
new URL('../src/lib/generated/examples-data.js', import.meta.url),
1515
`export default ${JSON.stringify(examples_data)}`
1616
);

0 commit comments

Comments
 (0)