Abou
Abou
Explore posts from servers
NNuxt
Created by Abou on 11/21/2024 in #❓・help
cookies not send to external api
when i do this : app.use((req, res, next) => { console.log('Cookies: ', req.cookies); next(); }) i've the cookie, but not inside my req.cookies and btw, my cookie is set correctly with what u said @kapa.ai idk why i still don't have my cookies inside req.cookies
25 replies
NNuxt
Created by Abou on 11/21/2024 in #❓・help
cookies not send to external api
i already configure my cors @kapa.ai : import express, {Express} from 'express'; import {configDotenv} from "dotenv"; import cors from 'cors'; import cookieParser from 'cookie-parser'; import mongoose from "mongoose"; import emailRoutes from "./routes/emailRoutes"; import authRoutes from "./routes/authRoutes"; const app: Express = express(); configDotenv(); app.use(cookieParser()); app.use(express.json()); app.use(cors({ origin: 'http://localhost:3000', credentials: true, })) /app.use((req, res, next) => { console.log('Cookies: ', req.cookies); next(); })/ mongoose.connect(process.env.MONGO_URI '', {}).then(() => { console.log('Connected to the database'); app.listen(PORT, () => { console.log(\x1b[32mServer is running on port ${PORT}\x1b[0m); }); }).catch((error) => { console.error('Error connecting to the database', error); }) const PORT = process.env.PORT 3000; app.use('/auth', authRoutes); app.use('/email', emailRoutes);
25 replies
NNuxt
Created by Abou on 11/21/2024 in #❓・help
cookies not send to external api
but why i can't just get req.cookies on my external api ? @kapa.ai
25 replies
NNuxt
Created by Abou on 11/21/2024 in #❓・help
cookies not send to external api
@kapa.ai but it give me all cookies, i just want one in particular (auth_token), like i want the value not a list of all cookies
25 replies
NNuxt
Created by Abou on 11/13/2024 in #❓・help
How to change .icon of my website ?
Hey, i didn't figure out. For the moment, i'm at the developement step (i didn't buy yet now) And yes, my favicon is an .ico and not a png !
17 replies
NNuxt
Created by Abou on 11/13/2024 in #❓・help
How to change .icon of my website ?
@kapa.ai i add this // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-04-03', devtools: { enabled: false }, // activer pour le mode dev (voir le temps de load du ssr etc, voir opti) css: ['~/assets/scss/main.scss'], modules: ['@nuxt/fonts', '@nuxt/image', '@nuxtjs/device'], fonts: { families: [ { name: 'Poppins', provider: 'google', weights: ['400', '600', '700'], styles: ['normal'], subsets: ['latin'] } ] }, runtimeConfig: { public: { apiBaseUrl: process.env.PUBLIC_API_BASE_URL || 'http://localhost:8000' } }, vite: { css: { preprocessorOptions: { scss: { api: "modern-compiler", } } } }, app: { head: { link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } ] } } }) inside my nuxt.config but still dosen't have my good favicon...
17 replies
NNuxt
Created by Abou on 11/13/2024 in #❓・help
How to change .icon of my website ?
No description
17 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
Sorry for the late answer. Thanks for your help, i did use the svgo module for the moment !
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
Hey, yeah i mean inline ^^
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
@kapa.ai good, i've find. but why is my svg black and don't have his origin color with svgo ?
22 replies
NNuxt
Created by Abou on 11/12/2024 in #❓・help
How to use svg
@kapa.ai when i'm using svgo, i got this error inside my terminal : [Vue warn]: Component <Anonymous> is missing template or render function. at <Anonymous> at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > at <Anonymous key="/" vnode= { v_isVNode: true, v_skip: true, type: { name: 'index', setup: [Function (anonymous)], ssrRender: [Function: _sfc_ssrRender], scopeId: 'data-v-02281a80', __file: '/Users/ilies/IdeaProjects/whispr/pages/index.vue' }, props: { onVnodeUnmounted: [Function: onVnodeUnmounted], ref: RefImpl { you'll find my code in a .txt and this is my nuxt.config.ts : // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-04-03', devtools: { enabled: false }, // activer pour le mode dev (voir le temps de load du ssr etc, voir opti) css: ['~/assets/scss/main.scss'], modules: ['@nuxt/fonts', '@nuxt/image', '@nuxtjs/device', 'nuxt-svgo'], // add Poppins font fonts: { families: [ { name: 'Poppins', provider: 'google', weights: ['400', '600', '700'], styles: ['normal'], subsets: ['latin'] } ] }, runtimeConfig: { public: { apiBaseUrl: process.env.PUBLIC_API_BASE_URL || 'http://localhost:8000' } }, vite: { css: { preprocessorOptions: { scss: { api: "modern-compiler", } } } }, svgo: { autoImportPath: '~/assets/svg', } })
22 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
Erf, I hate visual studio...
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
Yep, I see. And to have a designer I guess I have to choose something when I create the project?
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
So I have to use a designer to get a graphical interface?
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
I'm a web developer, but I have to do C# with the courses.
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
I'm a beginner at c#
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
In other words, without a designer?
28 replies
CC#
Created by Abou on 9/11/2024 in #help
[Rider] Incompatible framework for unit tests
I thought I had checked and done it before, thanks again!!!
28 replies