mirror of
https://github.com/withastro/astro.git
synced 2025-04-07 23:41:43 -05:00
Rename to ?fileurl
This commit is contained in:
parent
660667c783
commit
2f792b93cc
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ export function fileURLIntegration(): AstroIntegration {
|
|||
name: '@astrojs/db/file-url',
|
||||
enforce: 'pre',
|
||||
async load(id) {
|
||||
if(id.endsWith('?file-url')) {
|
||||
if(id.endsWith('?fileurl')) {
|
||||
const filePath = id.slice(0, id.indexOf('?'));
|
||||
if(command === 'build') {
|
||||
const data = await fs.promises.readFile(filePath);
|
||||
|
|
|
@ -44,7 +44,7 @@ export function getVirtualModContents({
|
|||
}) {
|
||||
return `
|
||||
import { collectionToTable, createLocalDatabaseClient } from ${INTERNAL_MOD_IMPORT};
|
||||
import dbUrl from './.astro/content.db?file-url';
|
||||
import dbUrl from './.astro/content.db?fileurl';
|
||||
|
||||
const params = ${JSON.stringify({
|
||||
collections,
|
||||
|
|
Loading…
Add table
Reference in a new issue