netlify

Using Environment Variables in a cURL request on Azure Devops

纵饮孤独 提交于 2019-12-24 00:39:11
问题 I'm trying to upload a zip file to Netlify with a command line task using cURL on Azure DevOps. Obviously I don't want to have my Netlify access token in the yaml file, so I've created a secret variable for it (using the UI designer) and mapped it using the syntax in the docs. However I keep getting a 401 back from Netlify. I can confirm via POSTMAN that the access token is valid. So I'm not sure what I'm doing wrong here. Am I using the env variables incorrectly in the request? here's the

Deployment Failure - Adding submodule issues - Using Netlify

早过忘川 提交于 2019-12-24 00:26:30
问题 I am trying to deploy my site to Netlify, when I try to trigger deployment, I am getting this error: 1:46:02 PM: Error checking out submodules: fatal: No url found for submodule path 'startbootstrap-grayscale' in .gitmodules 1:46:02 PM: Failing build: Failed to prepare repo 1:46:02 PM: failed during stage 'preparing repo': Error checking out submodules: fatal: No url found for submodule path 'startbootstrap-grayscale' in .gitmodules My Folder directory is the one I want to deploy and these

Gatsby failing production build

浪尽此生 提交于 2019-12-23 05:26:29
问题 Recently, Gatsby started failing to build a production version of the site. Development version builds fine. It seems to be some Babel issue but I can't figure out what it is. I've upgraded everything, deleted the node_modules folder and yarn.lock but after building everything afresh again it fails the same way. I'm not particularly familiar with the inner workings Babel so I'm guessing this is something to do with the Babel settings shipped with Gatsby? ERROR #98123 WEBPACK Generating

Blogdown doesnt render properly on netlify (theme tranquilpeak)

北城以北 提交于 2019-12-23 03:57:10
问题 The tranquilpeak website doesnt render properly on netlify even though it looks fine locally. screen shots are below. My repo is located here. Any help would be greatly appreciated. It took me multiple trials and errors to get my site to work fine locally. The previous attempts lead to the same result as you can see on the netlify picture. Successful local attempt: a) create an empty folder b) setwd(folder) c) new_site(theme = "kakawait/hugo-tranquilpeak-theme") d) create a project in the

Reverse proxy same naked domain to different hosts

女生的网名这么多〃 提交于 2019-12-23 02:54:11
问题 I'm managing the DNS of my domain with Cloudflare. The marketing pages for are hosted with Netlify. The main application is hosted with Heroku. Is it possible with cloudflare + a naked domain (my-example.com) to have some paths being served by Netlify and other paths by Heroku? Or am I forced to put one of the hosting services on a subdomain? 回答1: Disclaimer: I work for Netlify. You can definitely do this without running your own server or paying anything extra. Since Netlify already has a

Facebook not recognizing some Gatsby React Helmet Meta Tags on Netlify

允我心安 提交于 2019-12-23 02:33:02
问题 Some, but not all, of my Gatsby React Helmet Meta Tags seems to be getting lost by facebook. Here is the code: <Helmet> <title>Code Championship | Code is Sport</title> <meta name="description" content="Code is Sport. Competitive coding competitions for elementary, middle, and high school students." /> <meta name="keywords" content="code, championship, competition, minnesota" /> <meta property="og:url" content="https://www.codechampionship.com" /> <meta property="og:title" content="Code

Netlify: How do you deploy sites that are nested in a folder?

a 夏天 提交于 2019-12-22 08:59:44
问题 I have a repo that has the backend and frontend (create-react-app) in two separate folders. For the build command, I have something like cd frontend && npm run build and for the publish directory, I have something like frontend/build , but this is not working. 回答1: disclaimer: I work for Netlify. If you were to clone a new copy (no node modules installed in the project, for instance) of your project on a fresh laptop with nothing else except node and npm installed there, how would you build

Use Firebase SDK with Netlify Lambda Functions

馋奶兔 提交于 2019-12-22 00:35:36
问题 I create a project that uses React + Firebase + Lambda Functions. I have Firebase code on the front end and I needed a bit of back-end to handle some events. (Prevent users from modifying data in Firebase but allow this data to be updated by the application) As I use Netlify to deploy my app, I have access to Amazon Lambda Functions with netlify-lambda. (https://www.netlify.com/docs/functions/) Usually everything just works (mailchimp API, snipcart API etc ...) But I can not get Firebase

How to host multiple Github repos using the same custom domain on Netlify?

五迷三道 提交于 2019-12-20 10:24:20
问题 I am currently hosting my personal website (created using blogdown and Hugo) using Netlify at wjakethompson.com. This is deployed through a Github repository. I now have a bookdown project in a separate repository that I would also like to host on Netlify, while leveraging the custom domain that I have set up for my personal website. Currently, this bookdown project is being hosted on the Netlify subdomin (i.e., wjakethompson-dissertation.netlify.com). However, I would prefer to use my custom

Add _redirects file to root path for Vue SPA hosted on Netlify

匆匆过客 提交于 2019-12-20 09:06:11
问题 I'm developing a Single Page App using Vue CLI and want history pushstate to work so I get clean URLs. I have to follow this: https://www.netlify.com/docs/redirects/#history-pushstate-and-single-page-apps and add a _redirects file to the root of my site folder with the following: /* /index.html 200 The problem is I don't know how to add this _redirects file to the root of my dist folder. I tried adding it to the static folder but it ends up in a subfolder and not in root. How can I include