Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

+page.ts
import type { PageLoad } from './$types';
import { redirect } from '@sveltejs/kit';
import { server, ui_server } from './helpers';

export const load: PageLoad = async ({ request, fetch }) => {
  const url_ = `${server}/api/user`;
  console.log(url_);
  const resp = await fetch(url_, { credentials: 'include' });
  const y = await resp.json();
  if (y?.login) {
    redirect(302, `${ui_server}/settings`);
  }
  return y;
};