Skip to content

Commit 2794d65

Browse files
chore: wip
1 parent b206cf8 commit 2794d65

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

.stacks/core/vite/src/desktop.ts

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type ViteConfig } from '@stacksjs/types'
22
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'
44
import { alias } from '@stacksjs/alias'
55
import { defineConfig } from './'
66
import generateSitemap from 'vite-ssg-sitemap'
@@ -33,52 +33,6 @@ export const pagesConfig = {
3333
layouts({
3434
layoutsDirs: p.frameworkPath('stacks/dashboard/src/layouts'),
3535
}),
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
8236
],
8337

8438
// https://github.com/antfu/vite-ssg

0 commit comments

Comments
 (0)