Skip to content

Commit

Permalink
Added Apollo to Nuxt Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
VulpoTheDev committed Feb 13, 2023
1 parent f628831 commit be5a886
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 45 deletions.
98 changes: 53 additions & 45 deletions website/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,63 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxt/image-edge",
"@nuxtjs/color-mode",
[
"@pinia/nuxt",
{
autoImports: ["defineStore", ["defineStore", "definePiniaStore"]],
},
],
],
app: {
head: {
link: [
{
rel: "shortcut icon",
href: "./favicon.ico",
},
{
rel: "manifest",
href: "./manifest.json",
},
],
script: [
{
type: "text/javascript",
children: `
modules: [
"@nuxt/image-edge",
"@nuxtjs/color-mode",
"@nuxtjs/apollo",
[
"@pinia/nuxt",
{
autoImports: ["defineStore", ["defineStore", "definePiniaStore"]],
},
],
],
apollo: {
clients: {
default: {
httpEndpoint: 'http://localhost:8080/graphql'
}
},
},
app: {
head: {
link: [
{
rel: "shortcut icon",
href: "./favicon.ico",
},
{
rel: "manifest",
href: "./manifest.json",
},
],
script: [
{
type: "text/javascript",
children: `
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "frdjdgrmiy");
`,
},
],
},
},
build: {
transpile: ["gsap"],
},
css: ["~/assets/css/main.scss"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
webpack: {
optimizeCSS: true,
},
},
],
},
},
build: {
transpile: ["gsap"],
},
css: ["~/assets/css/main.scss"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
webpack: {
optimizeCSS: true,
},

// @nuxt/image-edge config
image: {},
// @nuxt/image-edge config
image: {},
})
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@fontsource/open-sans": "^4.5.14",
"@iconify-prerendered/vue-fa6-brands": "^0.18.1662097805",
"@nuxt/image-edge": "^1.0.0-27919678.2f5b64b",
"@nuxtjs/apollo": "^5.0.0-alpha.5",
"@nuxtjs/color-mode": "^3.2.0",
"@pinia/nuxt": "^0.4.6",
"autoprefixer": "^10.4.13",
Expand Down

0 comments on commit be5a886

Please sign in to comment.