Skip to content

Commit ecef9ee

Browse files
authored
Merge branch 'main' into main
2 parents b05d0b2 + 8de2a82 commit ecef9ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/svelte.dev/content/docs/kit/60-appendix/10-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ How to setup rewrites in production will depend on your deployment platform. If
144144
/// file: src/routes/api/[...path]/+server.js
145145
/** @type {import('./$types').RequestHandler} */
146146
export function GET({ params, url }) {
147-
return fetch(`https://my-api-server.com/${params.path + url.search}`);
147+
return fetch(`https://example.com/${params.path + url.search}`);
148148
}
149149
```
150150

apps/svelte.dev/content/docs/svelte/07-misc/04-custom-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Custom elements
55

66
<!-- - [basically what we have today](https://svelte.dev/docs/custom-elements-api) -->
77

8-
Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `<svelte:options>` [element](svelte-options).
8+
Svelte components can also be compiled to custom elements (aka web components) using the `customElement: true` compiler option. You should specify a tag name for the component using the `<svelte:options>` [element](svelte-options). Within the custom element you can access the host element via the [`$host`](https://svelte.dev/docs/svelte/$host) rune.
99

1010
```svelte
1111
<svelte:options customElement="my-element" />

0 commit comments

Comments
 (0)