|
@@ -2,9 +2,6 @@
|
|
|
|
|
|
|
|
export default $config({
|
|
export default $config({
|
|
|
app(input) {
|
|
app(input) {
|
|
|
- const prepareAwsDestroy = input.stage === "production" || input.stage === "dev"
|
|
|
|
|
- // Temporarily omit AWS infra so SST removes the lake/stats resources.
|
|
|
|
|
- const deployAws = false
|
|
|
|
|
return {
|
|
return {
|
|
|
name: "opencode",
|
|
name: "opencode",
|
|
|
removal: input?.stage === "production" ? "retain" : "remove",
|
|
removal: input?.stage === "production" ? "retain" : "remove",
|
|
@@ -33,9 +30,6 @@ export default $config({
|
|
|
async run() {
|
|
async run() {
|
|
|
const stage = await import("./infra/stage.js")
|
|
const stage = await import("./infra/stage.js")
|
|
|
await import("./infra/app.js")
|
|
await import("./infra/app.js")
|
|
|
- if (stage.prepareAwsDestroy) {
|
|
|
|
|
- await import("./infra/lake-destroy-prep.js")
|
|
|
|
|
- }
|
|
|
|
|
if (stage.deployAws) {
|
|
if (stage.deployAws) {
|
|
|
await import("./infra/lake.js")
|
|
await import("./infra/lake.js")
|
|
|
await import("./infra/stats.js")
|
|
await import("./infra/stats.js")
|