testing fix

This commit is contained in:
Adam Matthiesen 2024-02-05 23:38:12 -08:00
parent ecd2aac379
commit ea9901e939
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@matthiesenxyz/astro-ghostcms",
"description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content",
"version": "3.1.9",
"version": "3.1.9-dev01",
"homepage": "https://astro-ghostcms.xyz/",
"type": "module",
"license": "MIT",

View File

@ -1,11 +1,11 @@
import { fileURLToPath } from 'node:url';
import path from "node:path";
import pkg from 'fs-extra';
const { readFile } = pkg;
const { readFileSync } = pkg;
export async function GET(){
const response = readFile(path.resolve(fileURLToPath(import.meta.url), "..", 'rss-style.xsl'));
const buffer = Buffer.from((await response).buffer);
const response = readFileSync(path.resolve(fileURLToPath(import.meta.url), "..", 'rss-style.xsl'));
const buffer = Buffer.from((response));
return new Response(buffer, {
headers: { "Content-Type": "text/xsl" },
});