\n\n const googleMapsApiKey = process.env.NUXT_GOOGLE_MAPS_API_KEY;\n\n\nbut this doesnt work? When i use my api key directly in the file it works. But putting it in the .env i wont load the map? I thought placing your api key is not secure? Already asked chatgpt but no solution. \n\n\n\n### 🔍 What have you tried?\n\nI looked at the docs. Nothing about it. I tried chatgpt and different solutions nothing works. \n\n### ℹ️ Additional context\n\n_No response_",[1984],{"name":1985,"color":1986},"documentation","0075ca",313,"nuxt","scripts","open","Using the googlemaps api key?","2024-11-11T03:54:14Z","https://github.com/nuxt/scripts/issues/313",0.7824339,{"description":1996,"labels":1997,"number":2001,"owner":1988,"repository":1989,"state":2002,"title":2003,"updated_at":2004,"url":2005,"score":2006},"### 🐛 The bug\r\n\r\n1. Start the stackblitz reproduction\r\n2. You must be on the index page `/`\r\n3. DO NOT click the video in index\r\n4. Click `Go to Page`\r\n5. Try to play the video clicking it\r\n6. See that the script won't load the video\r\n\r\nBtw, after following these steps, if you back to index and then back again to `/page` the script will load automatically without clicking it.\r\n\r\n### 🛠️ To reproduce\r\n\r\nhttps://stackblitz.com/edit/nuxt-starter-hulk8u\r\n\r\n### 🌈 Expected behavior\r\n\r\nThe script in `/page` should be loaded after following these steps\r\n\r\n### ℹ️ Additional context\r\n\r\nnuxt: 3.13.1\r\n@nuxt/scripts: 0.9.0",[1998],{"name":1999,"color":2000},"bug","d73a4a",265,"closed","ScriptYouTubePlayer: script doesn't load if you navigate from a page with a script to another page with a script without triggering the previous one","2024-09-15T21:25:06Z","https://github.com/nuxt/scripts/issues/265",0.4447003,{"description":2008,"labels":2009,"number":2012,"owner":1988,"repository":2013,"state":2002,"title":2014,"updated_at":2015,"url":2016,"score":2017},"",[2010],{"name":1999,"color":2011},"ff281a",124,"nuxt.com","Milkdown editor only works in dark mode","2023-06-06T12:14:49Z","https://github.com/nuxt/nuxt.com/issues/124",0.70657957,{"description":2008,"labels":2019,"number":2023,"owner":1988,"repository":2013,"state":2002,"title":2024,"updated_at":2025,"url":2026,"score":2027},[2020],{"name":2021,"color":2022},"enhancement","1ad6ff",497,"[Milkdown] Replace Prism by Shiki to have the code highlight as in `@nuxt/content`","2023-06-06T12:14:53Z","https://github.com/nuxt/nuxt.com/issues/497",0.7177249,{"description":2029,"labels":2030,"number":2023,"owner":1988,"repository":2034,"state":2002,"title":2035,"updated_at":2036,"url":2037,"score":2027},"**Non-blocking bug**\r\n\r\nIn our project, we imported tailwind.css, for test env, I use CDN way to load tailwind. `nuxt.config.ts`:\r\n```\r\n app: {\r\n head: {\r\n script: [\r\n {\r\n src: 'https://cdn.tailwindcss.com'\r\n }\r\n ]\r\n }\r\n }\r\n```\r\nIn dev mode, it actually behaver:\r\n1, request `https://cdn.tailwindcss.com` get: status code: `302`, http header location: `3.2.4`\r\n2, request `https://cdn.tailwindcss.com/3.2.4`\r\n\r\n```\r\nTypeError: Invalid URL\r\n at new NodeError (node:internal/errors:393:5)\r\n at URL.onParseError (node:internal/url:565:9)\r\n at new URL (node:internal/url:645:5)\r\n at Function.getAbsoluteURL (xxx\\node_modules\\happy-dom\\lib\\location\\RelativeURL.ts:16:16)\r\n at XMLHttpRequest._sendSyncRequest (xxx\\node_modules\\happy-dom\\src\\xml-http-request\\XMLHttpRequest.ts:618:45)\r\n at XMLHttpRequest.send (xxx\\node_modules\\happy-dom\\src\\xml-http-request\\XMLHttpRequest.ts:472:9)\r\n at Function.fetchSync (xxx\\node_modules\\happy-dom\\src\\fetch\\ResourceFetchHandler.ts:39:7)\r\n at Function.loadExternalScript (xxx\\node_modules\\happy-dom\\src\\nodes\\html-script-element\\ScriptUtility.ts:63:5)\r\n at HTMLScriptElement._connectToNode (xxx\\node_modules\\happy-dom\\src\\nodes\\html-script-element\\HTMLScriptElement.ts:195:19)\r\n at HTMLElement.appendChild (xxx\\node_modules\\happy-dom\\src\\nodes\\node\\Node.ts:326:16) {\r\n input: '/3.2.4',\r\n code: 'ERR_INVALID_URL'\r\n}\r\n```\r\n\r\n",[2031],{"name":2032,"color":2033},"vitest-environment","b60205","test-utils","http redirect cause an Invalid URL error.","2023-12-05T17:00:37Z","https://github.com/nuxt/test-utils/issues/497",{"description":2039,"labels":2040,"number":2042,"owner":1988,"repository":2013,"state":2002,"title":2043,"updated_at":2044,"url":2045,"score":2046},"\n",[2041],{"name":2021,"color":2022},436,"[Milkdown] Improve components props display","2022-05-13T16:14:50Z","https://github.com/nuxt/nuxt.com/issues/436",0.7215288,{"description":2048,"labels":2049,"number":2050,"owner":1988,"repository":2013,"state":2002,"title":2051,"updated_at":2052,"url":2053,"score":2054},"In `content/` we should be able to edit the front-matter props not handled in Milkdown.\n\nBlocked by nuxtlabs/nuxt.com#172\n\nEx: https://github.com/docusgen/docus.com/blob/dev/components/templates/project/editor/ProjectEditorContentProps.vue",[],169,"Content file aside for front-matter","2022-03-25T09:54:52Z","https://github.com/nuxt/nuxt.com/issues/169",0.74995005,{"description":2056,"labels":2057,"number":2050,"owner":1988,"repository":1989,"state":2002,"title":2059,"updated_at":2060,"url":2061,"score":2054},"I was trying to use the [example](https://scripts.nuxt.com/scripts/content/google-maps#example):\r\n\r\n```\r\n\u003Cscript setup lang=\"ts\">\r\nconst { $script } = useScriptGoogleMaps({\r\n apiKey: 'key'\r\n})\r\n$script.then(({ maps }) => {\r\n const map = new maps.Map(document.getElementById('map'), {\r\n center: { lat: -34.397, lng: 150.644 },\r\n zoom: 8\r\n })\r\n})\r\n\u003C/script>\r\n```\r\n\r\nBut I get a type error in my IDE: `Property Map does not exist on type typeof maps | Promise\u003Ctypeof maps>`\r\n\r\nAs well as an error in Vue/Nuxt: `Uncaught (in promise) TypeError: maps.Map is not a constructor`",[2058],{"name":1985,"color":1986},"Docs: Google Maps example is not working","2024-09-03T15:28:08Z","https://github.com/nuxt/scripts/issues/169",{"description":2063,"labels":2064,"number":2066,"owner":1988,"repository":2013,"state":2002,"title":2067,"updated_at":2068,"url":2069,"score":2070},"https://www.figma.com/file/OLlmzoVQ7FSBh4FJJORNpl/nuxt.com?node-id=2441%3A11054",[2065],{"name":2021,"color":2022},115,"Improve docs navigation bar","2023-02-15T12:30:39Z","https://github.com/nuxt/nuxt.com/issues/115",0.7625136,{"description":2072,"labels":2073,"number":2066,"owner":1988,"repository":1989,"state":2002,"title":2074,"updated_at":2075,"url":2076,"score":2070},"If I have my global scripts set up like so:\r\n\r\n\r\n\r\nThen the scripts are output as expected on the frontend:\r\n\r\n\r\n\r\nHowever, if I pass in a UseScriptInput object, like so:\r\n\r\n\r\n\r\nThen the script is not output:\r\n\r\n\r\n\r\nIf I pass [UseScriptInput, NuxtUseScriptOptions], like so:\r\n\r\n\r\n\r\nI get this error:\r\n\r\n\r\n\r\nENV:\r\nbun 1.1.16\r\nnuxt 3.12.2\r\n@nuxt/scripts 0.5.1\r\n\r\nRunning with compatibility version 4\r\n",[],"Issues using UseScriptInput in the globals section of nuxt.config.ts","2024-07-03T09:16:13Z","https://github.com/nuxt/scripts/issues/115",["Reactive",2078],{},["Set"],["ShallowReactive",2081],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"u-aJdD_sJ9scEt71AH6arfCMP-bWIOYh96HCnoryT-g":-1},"/nuxt/nuxt.com/265"]