Skip to content

Commit fd58d56

Browse files
committed
chore: wip
1 parent cb89b60 commit fd58d56

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

storage/framework/core/cloud/src/cloud/router-layer/nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},
1212
"dependencies": {
13-
"@stacksjs/router": "^0.58.49"
13+
"@stacksjs/router": "^0.58.51"
1414
}
1515
}

storage/framework/core/router/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { extname } from 'node:path'
22
import { URL } from 'node:url'
33
import type { MiddlewareType, Route, StatusCode } from '@stacksjs/types'
4-
import { localUrl } from '@stacksjs/config'
54
import { middlewares } from './middleware'
65
import { request } from './request'
76
import { route } from '.'
@@ -13,7 +12,8 @@ interface ServeOptions {
1312
}
1413

1514
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'
1717
const port = options.port || 3000
1818

1919
Bun.serve({

storage/framework/server/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

storage/framework/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.58.28",
55
"dependencies": {
6-
"@stacksjs/router": "^0.58.49",
6+
"@stacksjs/router": "^0.58.51",
77
"aws4fetch": "^1.0.17"
88
}
99
}

0 commit comments

Comments
 (0)