attempt to resolve issues

This commit is contained in:
Triston Armstrong 2024-01-07 12:34:09 -06:00
parent 121108f85a
commit e964893b13
3 changed files with 18 additions and 6 deletions

View File

@ -61,7 +61,8 @@ export class Transformer {
static getHtmlContent = (content) => {
let htmlContent = []
const sanitizedContent = Transformer.preprocessThreeDashes(content)
htmlContent = ["<div>Placeholder</div>"]
/*
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]

View File

@ -1,3 +1,9 @@
[build]
command = "npm run build"
publish = "out"
[[plugins]]
package = "@netlify/plugin-nextjs"
[[plugins]]
package = "netlify-plugin-cache-nextjs"

View File

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