Skip to content

Commit 0764823

Browse files
committed
chore: wip
1 parent 6f1f894 commit 0764823

File tree

12 files changed

+60
-7
lines changed

12 files changed

+60
-7
lines changed

bun.lockb

-1.09 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
},
104104
"config": {
105105
"commitizen": {
106-
"path": "./storage/framework/core/node_modules/cz-git"
106+
"path": "./node_modules/cz-git"
107107
}
108108
},
109109
"workspaces": [

storage/framework/core/cloud/src/cloud/compute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class ComputeStack {
3131

3232
this.apiServer = new lambda.Function(scope, 'WebServer', {
3333
description: 'The web server for the Stacks application',
34-
code: lambda.Code.fromAssetImage(p.cloudPath('src/server')),
34+
code: lambda.Code.fromAssetImage(p.frameworkPath('server')),
3535
handler: lambda.Handler.FROM_IMAGE,
3636
runtime: lambda.Runtime.FROM_IMAGE,
3737
vpc,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './helpers'
22
export * from './cloud'
3+
export { default as server } from './runtime/server'

storage/framework/core/cloud/src/server/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

storage/framework/core/cloud/src/server/Dockerfile renamed to storage/framework/server/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ WORKDIR /tmp
44

55
COPY ./runtime.ts ./runtime.ts
66
COPY ./index.ts ./index.ts
7+
78
RUN bun install aws4fetch
89
RUN bun build --compile runtime.ts --outfile bootstrap
910
# TODO: we should not externalize @stacksjs/router here?
10-
RUN bun build --target=bun index.ts --outfile index --external @stacksjs/router
11+
RUN bun build --target=bun index.ts --outfile index
1112

1213
# Runtime image, includes Lambda RIC
1314
FROM public.ecr.aws/lambda/provided:al2

storage/framework/server/bunfig.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[install]
2+
# set default registry as a string
3+
registry = { url = "https://registry.npmjs.org" }
4+
5+
# where `bun install --global` installs packages
6+
globalDir = "~/.stacks/bun/install/global"
7+
8+
# where globally-installed package bins are linked
9+
globalBinDir = "~/.stacks/bin"
10+
11+
# whether to install optionalDependencies (currently needed because all drivers are optional)
12+
optional = true
13+
14+
# whether to install devDependencies
15+
dev = true
16+
17+
# whether to install peerDependencies
18+
peer = true
19+
20+
# equivalent to `--production` flag
21+
production = false
22+
23+
# equivalent to `--frozen-lockfile` flag
24+
frozenLockfile = false
25+
26+
# equivalent to `--dry-run` flag
27+
dryRun = false
28+
29+
[install.cache]
30+
# the directory to use for the cache
31+
dir = "~/.stacks/install/cache"
32+
33+
# when true, don't load from the global cache.
34+
# Bun may still write to node_modules/.cache
35+
disable = false
36+
37+
# when true, always resolve the latest versions from the registry
38+
disableManifest = false
39+
40+
[install.lockfile]
41+
42+
# path to read bun.lockb from
43+
path = "bun.lockb"
44+
45+
# path to save bun.lockb to
46+
savePath = "bun.lockb"
47+
48+
# whether to save the lockfile to disk
49+
save = true
50+
preload = [ "./storage/framework/core/bun-plugin-yaml/src/index.ts" ]

storage/framework/server/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { server } from '@stacksjs/cloud'
2+
3+
export default server

0 commit comments

Comments
 (0)