Passing SvelteKit +page.server.ts data to +page.ts - Scott Spence (+page.server.ts)

PHOTO EMBED

Thu Apr 11 2024 13:28:31 GMT+0000 (Coordinated Universal Time)

Saved by @obele #ts

import type { PageServerLoad } from './$types'

export const load: PageServerLoad = async () => {
  return {
    page_server_data: { message: 'hello world' },
  }
}
content_copyCOPY

https://scottspence.com/posts/passing-sveltekit-page-server-js-data-to-page-js