Hey all! Does the Prisma Data Proxy allow setting ...
# prisma-data-platform
o
Hey all! Does the Prisma Data Proxy allow setting the DB URL via the construct arguments or just the environment variable? E.g.
Copy code
export const prisma = () => new PrismaClient({
    datasources: {
        db: {
            url: process.env.PRISMA_CONNECTION,
        },
    },
});
Did a little testing - doesn’t seem to be looking at the constructor args and only allows the env var If I pass purely via constructor I get the
Could not parse URL of the datasource
error
a
Hello @OYΞD, yes, it currently needs to parse the datasource configuration block, but that can load the actual value from an env var. Does this approach not work for what you are trying to do? If it doesn’t, can you please share more details?