|
1 | 1 | import { type ViteConfig } from '@stacksjs/types'
|
2 | 2 | import { path as p } from '@stacksjs/path'
|
3 |
| -import { cssEngine, inspect, autoImports, components, layouts, pages, uiEngine } from './stacks' |
| 3 | +import { layouts, pages, uiEngine } from './stacks' |
4 | 4 | import { alias } from '@stacksjs/alias'
|
5 | 5 | import { defineConfig } from './'
|
6 | 6 | import generateSitemap from 'vite-ssg-sitemap'
|
@@ -33,52 +33,6 @@ export const pagesConfig = {
|
33 | 33 | layouts({
|
34 | 34 | layoutsDirs: p.frameworkPath('stacks/dashboard/src/layouts'),
|
35 | 35 | }),
|
36 |
| -<<<<<<< Updated upstream |
37 |
| - uiEngine(), |
38 |
| - cssEngine(), |
39 |
| - inspect(), |
40 |
| - |
41 |
| - // @ts-expect-error TODO: fix this |
42 |
| - { |
43 |
| - // ... |
44 |
| - configureServer(server: DevServer) { |
45 |
| - // const base = server.config.base || '/' |
46 |
| - // const _print = server.printUrls |
47 |
| - server.printUrls = () => { |
48 |
| - // const url = server.resolvedUrls?.local[0] |
49 |
| - // |
50 |
| - // if (url) { |
51 |
| - // try { |
52 |
| - // const u = new URL(url) |
53 |
| - // // eslint-disable-next-line no-console |
54 |
| - // console.log(`${u.protocol}//${u.host}`) |
55 |
| - // // const host = `${u.protocol}//${u.host}` |
56 |
| - // } |
57 |
| - // catch (error) { |
58 |
| - // log.warn('Parse resolved url failed:', error) |
59 |
| - // } |
60 |
| - // } |
61 |
| - |
62 |
| - const urlObj = new URL(app.url) |
63 |
| - const domainParts = urlObj.hostname.split('.') |
64 |
| - domainParts[domainParts.length - 1] = 'test' // replace TLD with 'test' |
65 |
| - const newHostname = domainParts.join('.') |
66 |
| - |
67 |
| - const appUrl = newHostname |
68 |
| - const docsUrl = `https://${appUrl}/docs` |
69 |
| - |
70 |
| - // const pkg = await storage.readPackageJson(frameworkPath('./package.json')) // TODO: fix this async call placing `press h to show help` on top |
71 |
| - const stacksVersion = `alpha-${version}` |
72 |
| - |
73 |
| - // eslint-disable-next-line no-console |
74 |
| - console.log(` ${c.blue(c.bold('STACKS'))} ${c.blue(stacksVersion)}`) |
75 |
| - // eslint-disable-next-line no-console |
76 |
| - console.log(` ${c.green('➜')} ${c.bold('Docs')}: ${c.green(docsUrl)}`) |
77 |
| - } |
78 |
| - }, |
79 |
| - }, |
80 |
| -======= |
81 |
| ->>>>>>> Stashed changes |
82 | 36 | ],
|
83 | 37 |
|
84 | 38 | // https://github.com/antfu/vite-ssg
|
|
0 commit comments