mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-29 20:59:24 +00:00
17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import { error } from '@sveltejs/kit';
|
|
import { trpc } from '$lib/store';
|
|
import type { LayoutLoad } from './$types';
|
|
import { redirect } from '@sveltejs/kit';
|
|
import Cookies from 'js-cookie';
|
|
export const ssr = false;
|
|
|
|
export const load: LayoutLoad = async ({ url }) => {
|
|
try {
|
|
return await trpc.dashboard.resources.query();
|
|
} catch (err) {
|
|
throw error(500, {
|
|
message: 'An unexpected error occurred, please try again later.'
|
|
});
|
|
}
|
|
};
|