Move API fetch data to different file
Sharing multiple exportable functions in one file impacts the use of private env variables 🤷
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { error } from '@sveltejs/kit'
|
||||
import type { PageServerLoad } from './$types'
|
||||
import { fetchAPI } from '$utils/api'
|
||||
import { fetchAPI } from '$utils/api/data'
|
||||
|
||||
export const load: PageServerLoad = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user