Next.js Discord

Discord Forum

Vercel Database

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
`
                const sqlResponse = await sql`
        SELECT * 
        FROM Profiles 
        WHERE ProfileID = ${params.profile};
    `;

ENV: .env.development.local

It works perfectly fine in routes but when i try to use sql in a page it gives me:Error fetching data: VercelPostgresError: VercelPostgresError - 'missing_connection_string': You did not supply a 'connectionString' and no 'POSTGRES_URL' env var was found.

1 Reply

Giant pandaOP
anyone can help me?