Questions tagged [netlify]

Ask questions about the Netlify setup, config or just in general using the netlify-cli or online at app.netlify.com

enter image description here

Netlify is a unified platform that automates your code to create high-performant, easily maintainable static web sites.
Simply push your code and let us take care of the rest.

2231 questions
10
votes
1 answer

Branch specific environment variables on Netlify

We're using Netlify's automatic deployment for all pushed git branches. We want to include our analytics scripts (et al) only for the master branch, i.e. the version of the website that our users are visiting. It's possible to build environment…
Fellow Stranger
  • 32,129
  • 35
  • 168
  • 232
9
votes
0 answers

next-on-netlify function times out > 10s when deployed, renders in 0.3s locally

Built with Next.js, next-on-netlify, and the page in question is using getServerSideProps. Over an average of 10 page loads: Using yarn dev (Next.js local dev), the full request takes ~1 second. Using netlify dev, the full request takes < 1…
Patrick Perini
  • 22,555
  • 12
  • 59
  • 88
9
votes
1 answer

Securing API Keys In JAM Stack

I am new to JAM stack. The web applications in JAM stack (I am hosting my app in Netlify ) will be completely relied upon APIs for storing info and authentication, right? So my concern is that I would have to expose all of my API keys publically in…
Anandhu
  • 807
  • 1
  • 9
  • 22
9
votes
3 answers

How to interpolate environment variables within netlify.toml config

I want to proxy to a different api depending on the environment - I've tried a few variations on the following theme without any luck. What's the correct way of doing this, if its even possible? [build.environment] …
Jed Richards
  • 12,244
  • 3
  • 24
  • 35
8
votes
2 answers

How do I get rid of the "Sync Changes 1 ↑" button in VS Code?

Lately, for some reason, I've had to press this button every time I want to push a change to my GitHub repository: I can't remember if there's a setting I've accidentally toggled. I also never make changes to my repository outside my VS Code…
Magnus Kolstad
  • 407
  • 1
  • 6
  • 17
8
votes
1 answer

How do I write a Lambda function for my Stripe integration?

Background: I am migrating our sales pages to a serverless CDN using Gatsby -> Netlify, and am trying to implement a Stripe customized payment flow because we want to customize our checkout form. I implemented the Stripe Checkout on one of our…
JohnnyK
  • 93
  • 1
  • 6
8
votes
0 answers

NestJS Graphql CORS: issue when accessing API through remote host, while functional on localhost

I am currently trying to deploy my NestJS server using Graphql on Google Cloud Run. I also have a React app that I use as a client, that I hosted on Netlify. I am getting the following CORS (Cross Origin Resource Sharing) error in the console when I…
DaveTheAl
  • 1,995
  • 4
  • 35
  • 65
8
votes
1 answer

warn Non-deterministic routing danger: Attempting to create page: [...] already exists

I finished writing a small blog application using Gatsby and React. Everything works fine when I try it locally. So I proceed with gatsby build and deploy the build folder into Netlify. However, after the deployment, the content of some of the pages…
EsoMars
  • 337
  • 3
  • 14
8
votes
4 answers

Deploy did not succeed: Deploy directory 'out' does not exist

When deploying an app created with Next.js to netlify, the following error occurs and the deployment fails. ──────────────────────────────────────────────────────────────── 6. Deploy site …
Jay White
  • 315
  • 1
  • 3
  • 10
8
votes
4 answers

ImportModuleError","errorMessage":"Error: Cannot find module while using Netlify lambda functions with dependencies

I'm trying to use netlify and its lambda function feature to run a node function with dependencies. Based on https://css-tricks.com/using-netlify-forms-and-netlify-functions-to-build-an-email-sign-up-widget/ , I have in my…
user1592380
  • 34,265
  • 92
  • 284
  • 515
8
votes
1 answer

Gatsby Failed Build - error "window" is not available during server side rendering

I have been trying to build my gatsby (react) site recently using an external package. The link to this package is "https://github.com/transitive-bullshit/react-particle-animation". As I only have the option to change the props from the components…
theintrigued
  • 83
  • 1
  • 7
8
votes
2 answers

How to setup DNS configuration with Netlify and Digital Ocean combined?

I have bought a domain my-domain.com at Namecheap. My goal is to use subdomains of my-domain.com with Digital Ocean and my-domain.com with Netlify. Desired result: my-domain.com redirecting to Netlify subdomain1.my-domain.com redirecting to…
mosses
  • 351
  • 3
  • 18
8
votes
2 answers

Netlify CMS with self-hosted Gitlab

I have a Gatsby static site that is currently deployed via Zeit Now from a self-hosted Gitlab account. I would like to add Netlify CMS, but it only seems to integrate with a Gitlab.com account. Is it possible to use Netlify CMS with a self-hosted…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
8
votes
1 answer

Netlify option to show directory contents

I need to list contents of my site directory on Netlify for debug, but I can not find an option to turn on directory listings. Am I right that there is no such autoindex ability in Netlify as mod_autoindex provides for Apache? UPDATE: I tried…
anatoly techtonik
  • 19,847
  • 9
  • 124
  • 140
8
votes
4 answers

How to delete Netlify deployed branch

Scenario: A new branch is created and desired code changes applied. The branch is later deployed to Netlify with a custom (Branch) URL. After testing, pull request is made and a deploy-preview is also deployed on Netlify with another custom URL.…
Lukas
  • 326
  • 1
  • 5
  • 14