attempt to resolve issues
This commit is contained in:
parent
121108f85a
commit
e964893b13
@ -61,7 +61,8 @@ export class Transformer {
|
|||||||
static getHtmlContent = (content) => {
|
static getHtmlContent = (content) => {
|
||||||
let htmlContent = []
|
let htmlContent = []
|
||||||
const sanitizedContent = Transformer.preprocessThreeDashes(content)
|
const sanitizedContent = Transformer.preprocessThreeDashes(content)
|
||||||
|
htmlContent = ["<div>Placeholder</div>"]
|
||||||
|
/*
|
||||||
unified()
|
unified()
|
||||||
.use(markdown, { gfm: true })
|
.use(markdown, { gfm: true })
|
||||||
.use(obsidianImage)
|
.use(obsidianImage)
|
||||||
@ -85,11 +86,12 @@ export class Transformer {
|
|||||||
.process(sanitizedContent,
|
.process(sanitizedContent,
|
||||||
function(err, file) {
|
function(err, file) {
|
||||||
htmlContent.push(String(file).replace('\n', ''))
|
htmlContent.push(String(file).replace('\n', ''))
|
||||||
if (err !== (null | undefined)) {
|
if (err !== null && err !== undefined) {
|
||||||
console.log('ERRROR:' + err)
|
console.log('CUSTOM ERROR @transformer.js:89:' + err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
htmlContent = htmlContent.join('')
|
htmlContent = htmlContent.join('')
|
||||||
htmlContent = htmlContent.split('---')
|
htmlContent = htmlContent.split('---')
|
||||||
return [htmlContent]
|
return [htmlContent]
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
[build]
|
[build]
|
||||||
command = "npm run build"
|
command = "npm run build"
|
||||||
publish = "out"
|
publish = "out"
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "@netlify/plugin-nextjs"
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache-nextjs"
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
export function webpack(config) {
|
/**
|
||||||
config.resolve.fallback = { ...config.resolve.fallback, fs: false }
|
* @type {import('next').NextConfig}
|
||||||
return config
|
*/
|
||||||
|
const nextConfig = {
|
||||||
|
output: 'export'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default nextConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user