File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { docsEngine } from '@stacksjs/vite'
7
7
import { server } from '@stacksjs/server'
8
8
9
9
export function docsUrl ( ) {
10
- const appUrl = app . url
11
- const docsSubdomain = app . subdomains . docs
10
+ const appUrl = app . url || 'stacks.test'
11
+ const docsSubdomain = app . subdomains ? .docs || 'docs'
12
12
const protocolPattern = / ^ h t t p s ? : \/ \/ / i
13
13
const urlForParsing = protocolPattern . test ( appUrl ) ? appUrl : `http://${ docsSubdomain } .${ appUrl } :3333`
14
14
const urlObj = new URL ( urlForParsing )
Original file line number Diff line number Diff line change 1
1
import { log , runCommand } from '@stacksjs/cli'
2
2
3
- const result = await runCommand ( 'bun build ./src/index.ts --outdir dist --format esm --external path --external local-pkg --external vite --external debug --target node ' , {
3
+ const result = await runCommand ( 'bun build ./src/index.ts --outdir dist --format esm --external path --external local-pkg --external vite --external debug --target bun ' , {
4
4
cwd : import . meta. dir ,
5
5
} )
6
6
Original file line number Diff line number Diff line change 30
30
" vite/client" ,
31
31
// "vue/ref-macros",
32
32
" vite-plugin-pages/client" ,
33
- " @stacksjs/vite-plugin-vue-layouts/client" ,
34
33
" vite-plugin-pwa/client" ,
35
34
" bun-types"
36
35
],
You can’t perform that action at this time.
0 commit comments