2023-05-15 03:08:46 -07:00
|
|
|
// https://vitejs.dev/config/build-options.html#build-modulepreload
|
|
|
|
import 'vite/modulepreload-polyfill';
|
|
|
|
|
|
|
|
import '@/style.scss';
|
|
|
|
import { mainBoot } from './boot/main-boot';
|
|
|
|
import { subBoot } from './boot/sub-boot';
|
|
|
|
|
2023-05-23 17:43:38 -07:00
|
|
|
const subBootPaths = ['/share', '/auth', '/miauth', '/signup-complete'];
|
|
|
|
|
|
|
|
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
2023-05-15 03:08:46 -07:00
|
|
|
subBoot();
|
|
|
|
} else {
|
|
|
|
mainBoot();
|
|
|
|
}
|