Kanahiro / sveltekit-amplify-starter

SvelteKit + Amplify Gen2 (Hosting + Backend) Template
0 stars 0 forks source link

passing `outputs` in better way. #3

Open Kanahiro opened 5 hours ago

Kanahiro commented 5 hours ago

You can import amplify_outputs.json like this:

import outputs from '../../amplify_outputs.json';

This is easy but it is not comfortable to write this line in everywhere. It is good to inject amplify modules and values to context like Supabase: https://supabase.com/docs/guides/auth/server-side/sveltekit