We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e256472 commit 36adb2eCopy full SHA for 36adb2e
gdf.js
@@ -173,9 +173,9 @@ export class GDF {
173
const schemaContent = fs.readFileSync(schema, 'utf-8')
174
const urlMatch = schemaContent.match(/url\s*=\s*"(.*?)"/)
175
if (!urlMatch) return null
176
- const url = urlMatch[1]
177
- if (url.startsWith('file:.')) return url.slice(5)
178
- if (url.startsWith('file:')) return URL.parse(url).pathname
+ const dbUrl = urlMatch[1]
+ if (dbUrl.startsWith('file:.')) return dbUrl.slice(5)
+ if (dbUrl.startsWith('file:')) return new URL(dbUrl).pathname
179
}
180
181
get prismaEnv() {
0 commit comments