0
Fork 0
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:
Matthew Phillips 2024-01-30 10:35:59 -05:00
parent 660667c783
commit 2f792b93cc
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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,