Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Sep 19, 2024
1 parent 66ac513 commit a203eb0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions storage/framework/core/cloud/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const result = await Bun.build({
'@stacksjs/storage',
'@stacksjs/env',
'@stacksjs/cli',
'aws-cdk-lib', // TODO: a recent AWS issue. We want to potentially remove this once the issue is resolved. Dig deeper into this before removing
],
})

Expand Down
17 changes: 0 additions & 17 deletions storage/framework/server/README.md

This file was deleted.

11 changes: 11 additions & 0 deletions storage/framework/views/web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,16 @@ export const createApp = ViteSSG(
})()

// ctx.app.use(Previewer)

const { router } = ctx
router.beforeEach((to, from, next) => {
if (to.fullPath.startsWith('/api') || to.fullPath.startsWith('/docs')) {
console.log('redirecting to', to.fullPath)
window.location.href = to.fullPath
return
}

next()
})
},
)

0 comments on commit a203eb0

Please sign in to comment.