Closed mattwarfield closed 4 days ago
Currently getting the same issue with 3.2.19 and next 14.2.15.
Rolling SST back to 3.1.78 seems to resolve it, I think the issue stems from https://github.com/sst/ion/commit/3cf7254d7260f58c2d75971f3df1197ecb2efac9
Thanks @jacksors! Appreciate you taking a look.
I can confirm that rolling back to SST version 3.1.78 resolved the issue for me as well. The app now deploys and functions correctly without the 'resource.enc' error.
can confirm this is happening all versions above 3.1.78
. Another workaround (that is not pretty, since its jsonfied) is to use process.env.SST_RESOURCE_MySecret
as the secrets/links are injected into the environment on top of the server-index handler file.
A better workaround is just removing the environment variable called SST_KEY_FILE
on the default server function
sorry about that we have a fix in v3.2.20 that should remove the env but will do a more correct fix later today
Description
When deploying a NextJS app to AWS using SST 3.2.11 with OpenNext, I'm encountering an error. The app works fine locally, but fails after deployment when accessing a page that references an S3 bucket.
Error Message
Steps to Reproduce
hello world
API endpoint with S3 bucket (dev & prod stages)hello world
API endpoint still worksEnvironment
Code Snippet
sst.config.ts
Full Error Stack Trace
Additional Information
sst dev
.import { Resource } from 'sst'
line resolves the error, but prevents access to the S3 bucket.Questions