Giter VIP home page Giter VIP logo

Comments (6)

jason5ng32 avatar jason5ng32 commented on September 17, 2024

我也想弄环境变量,但☝️意味着我要重构整个项目,我还不会呢…这个项目本身是我作为产品经理学 vue 的第一个项目🤣

from myip.

zhuima avatar zhuima commented on September 17, 2024

vercel 本身支持环境变量,程序里使用process.env.AZURE_MAP_API即可获取对应的值,本地开发的时候根目录添加.env,里面输入AZURE_MAP_API=xxxx, 这种即可

from myip.

jason5ng32 avatar jason5ng32 commented on September 17, 2024

我想了一下,似乎这样也不能阻止 key 泄露的问题,因为地图的 URL 里会包含 Key 的值。
是否还是应该起一个后端服务,将 API 包一下?

from myip.

zhuima avatar zhuima commented on September 17, 2024

地图的URL是临时的key吧,并不是调用地图的

from myip.

jason5ng32 avatar jason5ng32 commented on September 17, 2024

我在本地差不多弄完了,估计下周抽空弄完即可发版

from myip.

jason5ng32 avatar jason5ng32 commented on September 17, 2024

已支持环境变量。

from myip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.