testing fix
This commit is contained in:
parent
ecd2aac379
commit
ea9901e939
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/astro-ghostcms",
|
"name": "@matthiesenxyz/astro-ghostcms",
|
||||||
"description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content",
|
"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/",
|
"homepage": "https://astro-ghostcms.xyz/",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import pkg from 'fs-extra';
|
import pkg from 'fs-extra';
|
||||||
const { readFile } = pkg;
|
const { readFileSync } = pkg;
|
||||||
|
|
||||||
export async function GET(){
|
export async function GET(){
|
||||||
const response = readFile(path.resolve(fileURLToPath(import.meta.url), "..", 'rss-style.xsl'));
|
const response = readFileSync(path.resolve(fileURLToPath(import.meta.url), "..", 'rss-style.xsl'));
|
||||||
const buffer = Buffer.from((await response).buffer);
|
const buffer = Buffer.from((response));
|
||||||
return new Response(buffer, {
|
return new Response(buffer, {
|
||||||
headers: { "Content-Type": "text/xsl" },
|
headers: { "Content-Type": "text/xsl" },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue