mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-05-01 17:52:47 -03:00
correjidas algunas cosas del ssr y correjido que no andaba el token
This commit is contained in:
@@ -2,6 +2,8 @@ import { obtenerPostPorId } from '@/hooks/obtenerPostPorId.js';
|
||||
import { obtenerRespuestasPorId } from '@/hooks/obtenerRespuestasPorId';
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export const ssr = false;
|
||||
|
||||
export async function load({ params, fetch, depends }) {
|
||||
let ret = await obtenerPostPorId(params.idpost, fetch, depends);
|
||||
if (ret == null) return error(404, 'no existe un post con ese id.');
|
||||
|
||||
Reference in New Issue
Block a user