π”ͺπ”Ÿπ”©π”’
π”ͺπ”Ÿπ”©π”’
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
import data from '~/assets/personal/main.toml';

export default defineEventHandler(async (event) => {
try {
return data;
} catch (e) {
console.log(e);
return {}
}
})
import data from '~/assets/personal/main.toml';

export default defineEventHandler(async (event) => {
try {
return data;
} catch (e) {
console.log(e);
return {}
}
})
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
import content from '@originjs/vite-plugin-content'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxt/image", "@nuxt/icon"],
image: {
quality: 96,
format: ['avif','webp']
},
nitro: {
rollupConfig: {
// @ts-ignore
plugins: [content()]
}
}
})
import content from '@originjs/vite-plugin-content'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxt/image", "@nuxt/icon"],
image: {
quality: 96,
format: ['avif','webp']
},
nitro: {
rollupConfig: {
// @ts-ignore
plugins: [content()]
}
}
})
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
I solved that problem
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
I need help πŸ˜₯
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
import content from '@originjs/vite-plugin-content'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxt/image", "@nuxt/icon"],
image: {
quality: 96,
format: ['avif','webp']
},
vite: {
plugins: [content()]
}
})
import content from '@originjs/vite-plugin-content'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxt/image", "@nuxt/icon"],
image: {
quality: 96,
format: ['avif','webp']
},
vite: {
plugins: [content()]
}
})
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
[9:01:24 PM] WARN [plugin inject] personal/main.toml: rollup-plugin-inject: failed to parse /home/mble/Code/repos/mbledkowski/website/personal/main.toml. Consider restricting the plugin to particular files via options.include


ERROR RollupError: personal/main.toml (60:23): Identifier cannot follow number (Note that you need plugins to import files that are not JavaScript)
[9:01:24 PM] WARN [plugin inject] personal/main.toml: rollup-plugin-inject: failed to parse /home/mble/Code/repos/mbledkowski/website/personal/main.toml. Consider restricting the plugin to particular files via options.include


ERROR RollupError: personal/main.toml (60:23): Identifier cannot follow number (Note that you need plugins to import files that are not JavaScript)
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/5/2025 in #❓・help
Server read data from public
I am currently trying to use this plugin - https://github.com/originjs/origin.js/tree/main/packages/vite-plugin-content; but it is not f-ing working
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/19/2024 in #❓・help
Idk how to hydrate / execute client side only
how can i create global ref, when using onMounted?
12 replies
NNuxt
Created by π”ͺπ”Ÿπ”©π”’ on 2/19/2024 in #❓・help
Idk how to hydrate / execute client side only
I solved this by using a different approach, but thank you for your response
12 replies