mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-09 14:30:44 -03:00
Fix: al ser ssr no podia leer el token porque se estaba ejecutando en el
server
This commit is contained in:
@@ -4,7 +4,7 @@ import { redirect } from '@sveltejs/kit';
|
|||||||
import { get } from 'svelte/store';
|
import { get } from 'svelte/store';
|
||||||
import type { UserResponseDto } from '../../../types.js';
|
import type { UserResponseDto } from '../../../types.js';
|
||||||
|
|
||||||
export const ssr = true;
|
export const ssr = false;
|
||||||
|
|
||||||
export async function load({}) {
|
export async function load({}) {
|
||||||
const response = await fetch(get(apiBase) + '/api/admin/users', {
|
const response = await fetch(get(apiBase) + '/api/admin/users', {
|
||||||
|
|||||||
Reference in New Issue
Block a user