diff --git a/lib/transformer.js b/lib/transformer.js
index f50cd66..cc5d865 100644
--- a/lib/transformer.js
+++ b/lib/transformer.js
@@ -61,7 +61,8 @@ export class Transformer {
static getHtmlContent = (content) => {
let htmlContent = []
const sanitizedContent = Transformer.preprocessThreeDashes(content)
-
+ htmlContent = ["
Placeholder
"]
+ /*
unified()
.use(markdown, { gfm: true })
.use(obsidianImage)
@@ -85,11 +86,12 @@ export class Transformer {
.process(sanitizedContent,
function(err, file) {
htmlContent.push(String(file).replace('\n', ''))
- if (err !== (null | undefined)) {
- console.log('ERRROR:' + err)
+ if (err !== null && err !== undefined) {
+ console.log('CUSTOM ERROR @transformer.js:89:' + err)
}
}
)
+ */
htmlContent = htmlContent.join('')
htmlContent = htmlContent.split('---')
return [htmlContent]
diff --git a/netlify.toml b/netlify.toml
index 92a06d2..61ddca7 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,3 +1,9 @@
[build]
command = "npm run build"
publish = "out"
+
+[[plugins]]
+package = "@netlify/plugin-nextjs"
+
+[[plugins]]
+package = "netlify-plugin-cache-nextjs"
diff --git a/next.config.js b/next.config.js
index 900f350..95a7600 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,8 @@
-export function webpack(config) {
- config.resolve.fallback = { ...config.resolve.fallback, fs: false }
- return config
+/**
+ * @type {import('next').NextConfig}
+ */
+const nextConfig = {
+ output: 'export'
}
+
+export default nextConfig