This commit is contained in:
Will Greenberg
2024-10-10 11:55:13 -07:00
parent 99676f1590
commit a269a45244
19 changed files with 3684 additions and 0 deletions

View File

@@ -0,0 +1 @@
export const ssr = false;

View File

@@ -0,0 +1,2 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>

View File

@@ -0,0 +1,18 @@
import { base } from '$app/paths';
export async function load({ fetch }) {
const url = base + "/hello?name=PageLoadFunction";
const opts = {
method: "get",
headers: { "Content-Type": "application/json" }
};
const response = await fetch(url, opts);
const hello = await response.text();
console.log("Hello:", hello);
return {
hello
};
}