♻️ refactor(core): Restructure project for better module separation
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { env } from 'next-runtime-env';
|
||||
import i18nConfig from '../.i18nrc.json';
|
||||
import packageJSON from '../package.json';
|
||||
|
||||
export const locales = i18nConfig.outputLocales;
|
||||
export const locales = packageJSON.i18n.outputLocales;
|
||||
export const defaultLocale = packageJSON.i18n.entry;
|
||||
|
||||
export const NEXT_PUBLIC_DEFAULT_LANGUAGE = env('NEXT_PUBLIC_DEFAULT_LANGUAGE') || locales[0];
|
||||
export const NEXT_PUBLIC_DEFAULT_LANGUAGE = env('NEXT_PUBLIC_DEFAULT_LANGUAGE') || defaultLocale;
|
||||
|
||||
export const NEXT_PUBLIC_SITE_URL = env('NEXT_PUBLIC_SITE_URL');
|
||||
export const NEXT_PUBLIC_API_URL = env('NEXT_PUBLIC_API_URL');
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
import localFont from 'next/font/local';
|
||||
|
||||
export const geistSans = localFont({
|
||||
src: './GeistVF.woff',
|
||||
variable: '--font-geist-sans',
|
||||
weight: '100 900',
|
||||
});
|
||||
export const geistMono = localFont({
|
||||
src: './GeistMonoVF.woff',
|
||||
variable: '--font-geist-mono',
|
||||
weight: '100 900',
|
||||
});
|
||||
Reference in New Issue
Block a user