Open dmeehan1968 opened 1 month ago
Out of curiosity how come you are trying to access it through `SSTRESOURCE*?
Out of curiosity how come you are trying to access it through `SSTRESOURCE*?
Because of the other issue I have with my Nextjs being in a subdirectory from sst root. That breaks the types generated to allow it to be referenced via Resource.
SST generates
SST_RESOURCE_*
environment variables for any created resources, and adds definitions for these to thesst-env.d.ts
file, so they are accessible fromResource
(import { Resource } from "sst"
).In my case my app is called
Dashboard
(new sst.aws.Nextjs('Dashboard', ...)
, andsst-env.d.ts
containsHowever, there is no
SST_RESOURCE_Dashboard
in the Nextjs environment (I tried logging from middleware, route and page handlers (RSC)).