-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: [Secret variable] is not linked #4381
Comments
And you set the secret for the prod as well |
this is a nextjs thing - you cannot use serverside code on the frontend |
Yes sir |
So sorry I was OOO, I ended doing this async run() {
const WalletConnectionProjectId = new sst.Secret(
'WalletConnectionProjectId',
);
const AlchemyApiKey = new sst.Secret('AlchemyApiKey');
const bucket = new sst.aws.Bucket('DroseraBucket', {
public: true,
});
new sst.aws.Nextjs('Drosera', {
link: [WalletConnectionProjectId, bucket],
domain: {
name: 'app.devnet.drosera.io',
dns: sst.cloudflare.dns(),
},
environment: {
NEXT_PUBLIC_WALLET_CONNECTION_PROJECT_ID:
WalletConnectionProjectId.value,
NEXT_PUBLIC_ALCHEMY_API_KEY: AlchemyApiKey.value,
},
});
}, setting the secrets values using the
and I could access but when the problem was when I deploy tell me the resources is not linked as you see the error. |
I have a problem with sst secrets, I deployed the app to prod, no errors but when this loads, it says the error about the secret is not linked.
my sst config file
The text was updated successfully, but these errors were encountered: