refactor: move inline templates to files and bump version to 1.3.8
This commit is contained in:
@@ -0,0 +1 @@
|
||||
@zen:registry=https://git.hyko.cx/api/packages/zen/npm/
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from '@zen/core/features/admin/page';
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function Redirect() {
|
||||
redirect('/admin/dashboard');
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from '@zen/core/features/auth/page';
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function Redirect() {
|
||||
redirect('/auth/login/');
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export { default, generateMetadata } from '@zen/core/modules/page';
|
||||
@@ -0,0 +1 @@
|
||||
export { GET, POST, PUT, DELETE, PATCH } from '@zen/core/zen/api';
|
||||
@@ -0,0 +1,6 @@
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
const { initializeZen } = await import('@zen/core');
|
||||
await initializeZen();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@styles/*": ["./styles/*"],
|
||||
"@components/*": ["./components/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
devIndicators: false,
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user