Self-hosting! (#49)

* added self-hosting
This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-28 09:28:44 +02:00
committed by GitHub
parent f0b7526847
commit df05e2dab3
70 changed files with 2310 additions and 272 deletions

View File

@@ -16,9 +16,8 @@ const SkipOnboarding = () => {
res.refetch();
}, [pathname]);
console.log(res.data);
if (!pathname.startsWith('/onboarding')) return null;
return (
<button
onClick={() => {
@@ -30,6 +29,7 @@ const SkipOnboarding = () => {
text: 'Are you sure you want to skip onboarding? Since you do not have any projects, you will be logged out.',
onConfirm() {
auth.signOut();
router.replace(process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL);
},
});
}

View File

@@ -2,6 +2,7 @@ import type { MetadataRoute } from 'next';
export default function manifest(): MetadataRoute.Manifest {
return {
id: process.env.NEXT_PUBLIC_DASHBOARD_URL,
name: 'Openpanel.dev',
short_name: 'Openpanel.dev',
description: '',
@@ -9,12 +10,5 @@ export default function manifest(): MetadataRoute.Manifest {
display: 'standalone',
background_color: '#fff',
theme_color: '#fff',
icons: [
{
src: '/favicon.ico',
sizes: 'any',
type: 'image/x-icon',
},
],
};
}