Skip to content

Commit

Permalink
chore: disable integration
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Oct 24, 2023
1 parent 7ac279e commit 105d798
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/integrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import child_process from "node:child_process";
import fs from "node:fs";
// import child_process from "node:child_process";
// import fs from "node:fs";

import type { AstroIntegration } from "astro";

const assetsDir = "public/static";
// import { debug } from "../utils";

// const assetsDir = ".astro/.astrotion/static";
// const assetDirName = "static";

export default (): AstroIntegration => ({
name: "astrotion",
hooks: {
"astro:build:done": async ({ dir }) => {
const outDir = new URL("notion", dir.href).pathname;
if (!fs.existsSync(outDir)) {
fs.mkdirSync(outDir);
}

child_process.execSync(`cp -n -r ${assetsDir}/* ${outDir} || true`);
"astro:build:done": async ({ dir: _ }) => {
// const outDir = new URL(assetDirName, dir.href).pathname;
// fs.mkdirSync(outDir, { recursive: true });
// const command = `cp -n -r ${assetsDir}/* ${outDir} || true`;
// debug(`copying assets: ${command}`);
// child_process.execSync(command);
},
},
});

0 comments on commit 105d798

Please sign in to comment.