File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
cloud/src/cloud/router-layer/nodejs Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 10
10
"test" : " echo \" Error: no test specified\" && exit 1"
11
11
},
12
12
"dependencies" : {
13
- "@stacksjs/router" : " ^0.58.49 "
13
+ "@stacksjs/router" : " ^0.58.51 "
14
14
}
15
15
}
Original file line number Diff line number Diff line change 1
1
import { extname } from 'node:path'
2
2
import { URL } from 'node:url'
3
3
import type { MiddlewareType , Route , StatusCode } from '@stacksjs/types'
4
- import { localUrl } from '@stacksjs/config'
5
4
import { middlewares } from './middleware'
6
5
import { request } from './request'
7
6
import { route } from '.'
@@ -13,7 +12,8 @@ interface ServeOptions {
13
12
}
14
13
15
14
export async function serve ( options : ServeOptions = { } ) {
16
- const hostname = options . host || options . tunnel ? await localUrl ( { type : 'backend' } ) : '127.0.0.1'
15
+ // maybe make use of localUrl({ type: 'backend' }) here & options.tunnel
16
+ const hostname = options . host || 'localhost'
17
17
const port = options . port || 3000
18
18
19
19
Bun . serve ( {
Original file line number Diff line number Diff line change
1
+ # Server
2
+
3
+ This directory is used to store files to build the Docker image for the server.
4
+
5
+ ## TODO
6
+
7
+ - [ ] Don't include node_modules in the Docker image, but bundle it using Bun
8
+ - [ ] Include bun.lockb file to build the Docker image
Original file line number Diff line number Diff line change 3
3
"type" : " module" ,
4
4
"version" : " 0.58.28" ,
5
5
"dependencies" : {
6
- "@stacksjs/router" : " ^0.58.49 " ,
6
+ "@stacksjs/router" : " ^0.58.51 " ,
7
7
"aws4fetch" : " ^1.0.17"
8
8
}
9
9
}
You can’t perform that action at this time.
0 commit comments