netlify / ask-netlify Goto Github PK
View Code? Open in Web Editor NEWA place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
Home Page: https://ask.netlify.com
A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
Home Page: https://ask.netlify.com
Hi, I'm Pete and new at using Netlify.
I have deployed a couple of times as trials, and all went well... but now there is a deploy that never ends.
The deploy log shows that spinning thing... and has done so for days.
I cannot see a way to interrupt it, or stop it.
Any advice? Is there another approach?
Thanks for help.
P.
It should be easy to subscribe to the site
This is what I'd like to happen when I add a new mdx-deck
site/slide deck to Netlify:
mdx-deck
in my package.json
and autofill the build command npm run build
and the publish directory dist
How can I contribute to make this happen? ๐ค
Does Netlify have socks? If so, how can I get some? ๐
Does Netlify have a way of showing me how many times the repo of my Netlify Template has been deployed?
Netlify is so flexible, convenient, and easy to use. I'm glad I'm not stuck on Jekyll and GitHub pages anymore.
Netlify DNS has a lot of advantages such as geolocation decreasing the Time To First Byte, however it doesn't appear to support DNSSEC. Are there any plans to support it in the future?
I've recently been introduced to JAM stack and I like it. I'm soon going to be making a website for a client which will be using continous deployment. It will be a very small project (portfolio site basically) and I'm contemplating hosting it on free plan because there's absolutely no reason to go paid.
So, will there be any downsides to using free plan, such as having reduced bandwidth (loading speed)? I would be willing to pay some amount of money to be "taken seriously" and receive some guarantees considering uptime etc, but 45$ for Pro plan is way too much for a very basic website. So, what's the catch and is there any? :-)
I've heard that people (including me) are often suspicious of these free static files hosting, because they come from shared hosting (PHP,MySQL) world where everything good costs money and that isn't true here in the static hosting world because it's much simpler so there isn't much cost to providing good service. Is that true?
EDIT:
One additional question: Do websites hosted on Free plan still use CDN? I went to look into the matter and several tools informed me that there was no CDN used (based on the fact that all assets were served from marinoguerieri.netlify.com which is the website in question), but when I ran two different "server locator" tools, one informed me that the server was in Germany while another claimed it was in the US. So, I guess it does use CDN. Does the fact that all assets are served from main domain (marinoguerieri.netlify.com) as opposed to something like cdn1.netlify.com/cdn2.netlify.com exclude the use of CDN or does CDN work at DNS level, i.e. routing the traffic to the nearest/fastest server while still displaying the same domain name to the end-user?
I hope it's not too much to answer, but I can't seem to find direct answers to these questions.
I thank you in advance for the time taken to answer these questions. :)
Cloudflare is offering domain names with no-markup pricing. For instance, for a ".com" name I used to pay about $15 per year with my previous registrar service, which went down to $8 with Cloudflare registrar.
This is the reason why many people use a combination of Cloudflare registrar+DNS and Netlify hosting. But it seems preferable to use oly one platform, Netlify, for registrar+DNS+hosting.
Will Netlify also offer domain names with no-markup pricing, like Cloudflare, in the near future?
@biilmann demoed a nice FaunaDB integration at the first JAMstack conference.
Are there any other integrations planned at Netlify?
@mcat demoed a JAMstack job board developed within the GraphQL Headless CMS Takeshape during the last JAMstack NYC meetup, we saw that it has a nice Netlify integration, you can create your Netlify website within Takeshape and deploy it. Are you aware of other products that have a similar Netlify integration?
Any plan for a GraqhQL layer for the Netlify API?
Thanks
My site is at https://illtron.net, and it occasionally downloads an HTML file of a page instead of loading in the browser. When I reload, it always works fine on the second try. It happens on multiple browsers, including on my phone.
I'm not aware that I can adjust mime types or headersโฆ but it seems like it's that kind of issue.
The site is generated with Eleventy for what it's worth. I'm happy to answer any questions about my setup if it would help.
Here's a gif and some screenshots, which don't add much, but may help establish that I'm not a crazy person.
Any update on when the new base build image will be released or whether we can help test it? Refs netlify/build-image#183
I donโt know whether your apex LB has an IPv6 record yet but itโd be great if that could be published if it does!
What I really want to ask is...
If you like.
I've seen sites on GitHub Pull Requests (PR) with following bots showing Netlify previews.
(below is an example PR on Reactjs.org repo)
Here is another example PR for Redux documentation.
How can one set up Netlify previews on a GitHub repo?
I think I've set it up for few long time ago but can't seem to figure out any more... ๐ค๐
Thank you for making site deployment easy ๐.
You guys are awesome ๐
I'd love to see some kind of Analytics finding it's way to Netlify. Client-side tracking รก la Google Analytics is becoming less and less effective every day because of tracking and ad blockers. Any chance we'll see something like that?
Netlify Socks as merch would be awesome! I'd love to wear some โค๏ธ
what it says on the tin. is there any protection for me (financially or otherwise) if someone randomly decides to send a bunch of junk requests at my functions or sites and how does Netlify know what's valid or not valid?
What I really want to ask is...
Is there a way to have a test environment that I can deploy to, then having validated that, I can then progress the app onto LIVE.
Also, is there a way to generate a build status README badge that I can drop into the README on my GitHub project?
I've been amazed by great Netlify is, so glad I started using it!
Software Engineer for Campaign Monitor & Founder of Sully Labs (my umbrella entity for all of my side projects)
What's the best way to update the user_metadata
in Netlify Identity as a response to a identity-signup
event?
An identity-signup
event only returns the user
object and does not include an Identity admin token for updating the user_metadata
via GoTrue.
Here's my use-case:
identity-signup
event fires and my identity-signup.js
function runs which creates a user in MongoDB_id
for the new user
document into the Netlify Identity user_metadata
, but I have not found an easy way to do that.Ideally, I would like to handle updating the user_metadata
within that identity-signup.js
function right after the user is created in MongoDB.
Thoughts?
Do you support the "s-max-age" headers to control how long a file is cached in the CDN, say passing thru a proxy set in netlify.toml config?
What I really want to ask is how do Netlify Forms work under the hood? Itโs great that I can just add an attribute to the form and it just works โข๏ธ, but how does the site know? Is it JavaScript? Or server specific setup?
Thanks!
๐
A lot of people have been asking for IPv6 support on the Netlify CDN. That seems to be taking a long time. Why is that and when might we expect it?
What I really want to ask is...
I have a site on my personal Netlify account that I would like to transfer to a company account.
It is important that these both remain free accounts. How can I transfer this site?
Netlify seems awesome so far!
Can we get a clickable file upload function where we can currently only drag and drop our ZIP for manual deploys?
For someone rocking a minimal operating system, installing a file browser just to drag and drop a file into a browser hurts my soul. I'd like to be lazy enough to do quick zip uploads without cURL.
Y'all probably know me already as creator of the WordPress -> static site plugin, with API deploys to Netlify. Next release is going to be killer and I'll add in an easy way to get your _redirects
and _theotherfile
via the UI. Watch for releases: https://github.com/leonstafford/wordpress-static-html-plugin/
How can I create a file (csv, jpg, json, pdf) etc in tmp (temp storage of Netflify Function/Lambda) and then write that file to the same Netlify website?
Here is an example NPM package
https://www.npmjs.com/package/write-csv
FLOW
Create CSV using function, write to temp (/tmp/ in function), write to my Netlify website
eg. https://funky-bison-8334.netlify.com/data.csv
The Netlify platform is one of the best and feature packed services I have used in years, stellar job!
Can I act as a reseller for Netlify? I mean, can I programatically create separate accounts for each client and also manage their sites throught my own account?
I know I can create individual sites for clients or even add a user for each client on my own account, but I'm thinking more in creating new separate accounts for them, so we can part ways if they choose another person to update or maintain their website.
Netlify is awesome. I'm enjoying so much that I'm thinking in bringing all my clients to the platform.
I've got Netlify integrated with GitHub such that it injects status messages into pull requests. However, these messages are adorned with my GitHub profile picture and the message header uses my GitHub handle.
The example integration on https://www.netlify.com/docs/webhooks/ shows a Netlify icon and the message says "netlify bot commented 6 hours ago".
I've been looking and I can't figure out what I need to do so that my (albeit beautiful) profile picture isn't plastered on all PRs submitted by my team, and we can have a netlify bot thingy instead.
Any help appreciated.
Thanks.
After every rebuild I see a netlify access in google analytics. Can you suggest a filter to remove access of the infrastructure from analytics?
I really feel your passion behind this wonderful service.
I have no question to ask.
I just want to say that the Netlify Identity Widget is so freaking awesome and it's into details and it's one hundred million times easiser to use than Auth0.
Thumb Up!!!
Where to start? I think I understand fully, but wonder a lot about how it all fits together when I am running multiple pet projects through Netlify with some supported client projects also.
People really don't believe me when I tell them they get all the soft limits and they are paying so much for their shared hosting. I think in one of the talks at the JAMStack_conf there was mention of perception of prices equating to better services. ๐ฉ
There has to be hidden costs. --Pessimist Friend
This answer really needs to be somewhere I can just send all these people to.
From the Netlify documentation...
Sometimes, you may want to push commits to your production branch without triggering a deploy on Netlify. To do this, add
[skip ci]
anywhere in the Git commit message.
Request two minor enhancements:
[ci skip]
-- nobody can remember which way it's supposed to be specified[skip netlify]
-- this will save wasted processing time when changes will not affect the documentation/websiteSorry if this isn't the right place for this enhancement request, but it's not really apparent where this issue should have been submitted.
See also:
several questions:
here https://netlify.com it says "Add your build settings". Does that mean I
can juse pick any tool from https://staticgen.com and and use that as my
command? for example jekyll build
?
if all programs on https://staticgen.com are not supported "out of the box"
as described above, which ones are, if any?
i see here https://github.com/netlify/build-image#tools that Hugo is listed,
does that mean that Hugo is the only generator supported out of the box? if so
why are Clojure, PHP, etc installed? If not why is Hugo the only generator
installed? Since the other languages are installed does that mean that any
generator in those languages is allowed? If so how does that work?
We have heard there is a new community manager at the company, but have not heard much lately. Can you guys tell us more about how this will look and what Netlify is building or plans to put together?
I am curious also if Netlify is going to reach out to us community members who spend some time helping others in the community for a first look. ๐
Keep rocking ๐ธ on!
Let's say I want to set up a meetup in my city. Do you have any recommended resources on how to do this? What kind of content goes on in other meetups? Who can I invite as sponsors? How do I get stickers 'n stuff from Netlify?
just thought this is a nice question for video :)
I am creating a simple react application, basically it will match the pathname (/some/pathname
) of the website and I will do something with it:
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
const Default = () => (<div>Home</div>);
const Test = () => (<div>Test</div>);
const NoMatch = () => (<div>404</div>);;
class App extends Component {
render() {
return (
<Router>
<Switch>
<Route path="/" exact component={Default}/>
<Route path="/test" component={Test}/>
<Route component={NoMatch} />
</Switch>
</Router>
);
}
}
It works perfectly locally, but when I deploy it to Netlify, every time I go to certain path /test
, Netlify will detect it as a 404 code so it will display the famous 404 page.
I went over the documentation but I did't found anything to fit my needs.
Any ideas how could I accomplish it?
lots of startups die and i have trust issues. Facebook killed Parse. Twitter acquired and killed Smyte. How do I know you won't do the same?
hey what is the benefit of using Netlify DNS?
for example for a domain i bought on google domains
why would i use netlify DNS over googleโs DNS
google's DNS has email forwarding features i like, and i lost it when i transferred to netlify DNS. is there some way to keep it?
So, I created a site with netlifyCMS and used the template. The only thing I changed was the default theme. I used the academic theme. So I changed the url of the request as follows in order to create a page with academic and the cms already attached.
Well the page is online and the invite email arrived, but the link with the invite_token
doesn't show a password field.
Now that I think of it, I don't know if my approach (by changing the repository from the default theme to another just to have the cms attached) would actually work.
I've transitioned several pages from Cloudflare + my own VPS to Netlify. So far, I'm really happy with the experience! Fast builds, no worries, easy setup.
The only thing I am missing (that Cloudflare or my own NGINX/Apache offered) is Brotli compression for static assets. Brotli.pro says that my pages on Netlify (eg. https://lichter.io) are not delivered with Brotli compression.
[ I've put CloudFlare in front of the page so Brotli works again ]
Is Brotli support planned? If yes, do you have a rough ETA? ๐ค
Brotli support is planned as discussed @ https://youtu.be/IWPDI01DsAo?t=1669
Brotli.pro also documents the current state of Brotli support for Netlify now
Thanks for all the work and effort ๐
A good question from Ovie Okeh on twitter:
https://twitter.com/sixty5black/status/1098189193849815040
Are there any plans in the future to allow developers to kill a build process manually? That seems like a pretty important functionality.
I start by saying that my question doesn't want to be controversial, it's genuine curiosity and maybe there's something that I'm not getting.
That said, I don't quite understand how Netlify Analytics is worth
Again, maybe I'm missing something, so I'd love to know your point of view. Thanks!
Am I correct to assume the redirects lookup order ( _redirects
then netlify.toml
)?
In my tests this is working just fine but I want to be safe in assuming we can use this in our solutions. This would be great to be able to count on this being a general rule.
Based on the 2 files below in my repo:
https://netlify-redirects--shorter.netlify.com/test
redirects to https://netlify.com
prior to:
https://netlify-redirects--shorter.netlify.com/.netlify/functions/redirect/test
_redirects
/google https://google.com 302
/test https://netlify.com 302
netlify.toml
[build]
command = "npm run build:redirects && npm run build"
functions = ".netlify/functions/"
[[redirects]]
from = "/"
to = "/.netlify/functions/redirect"
[[redirects]]
from = "/:code"
to = "/.netlify/functions/redirect/:code"
status = 200
force = true
Redirects in Netlify are so powerful and fast and should really be understood by everyone using the ADN ๐
I really enjoy the redirect
system and the idea of splats and placeholders. However, I feel like sometimes it'd be useful to have more freedoms to customize redirects.
Especially I'm missing that we can't use regular expressions to match (and re-insert) URLs or query variables as you can with Apache
, Nginx
or even other Netlify competitors.
Will there be RegEx support for redirect rules in the future or would you suggest using a custom function instead? ๐ค
Why is the Go based https://github.com/netlify/netlifyctl not upgraded to a version that equals the new node-cli ?
I really like SSG's and think it's awesome that Netlify supports opensource projects for free!
What I really want to ask is...
What happened to the old click to upload instead of drag-and-drop for manual deploys? And could we potentially see a progress bar for manual deploys in the future? The manual deploys feature is so underrated.
If you like.
If I turn on the optional LMN on netlify, will I be charged when a bad actor uses my images?
If so, can we get these transforms gated from a referrer?
Maybe we could do this with a function. Oh no, that would cost me a hit also!
I think we need to get a clearer picture of how the hits affect our charges.
The bad actors out there are real!
@futuregerald feel free to add this to the new community as a topic ๐คฃ
I use GTmetrix to measure my website's performance regularly. It makes suggestions as to optimisations.
One issue I'm currently getting highlighted by the tool is "Serve resources from a consistent URL - The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL"
I've disabled and re-enabled Netlify asset optimisation, as well as changing my jekyll-assets
config to no luck. It seems that <img src>
asset references are always served with the CloudFront domain, whilst <link href>
references are always served off the Netlify origin domain.
Here are the extracts of the Netlify produced source code; where simpler-bulb-primary-dark.svg
is the exact same resource unnecessarily duplicated by two different HTTP requests:
<link rel="preload" as="image" href="/assets/simpler-bulb-primary-dark.svg"> & <img width="250" height="250" alt="Smart Helping Hands logo" src="https://d33wubrfki0l68.cloudfront.net/abdba9c31570febda716627613edee7c1b7b9338/057de/assets/simpler-bulb-primary-dark.svg" integrity="sha256-5z1P4yeVXgVsxe/bywcAGcessUwED2e8NgmMsxRhKBo=" crossorigin="anonymous">'
Is this a bug in Netlify, or is there a way of fixing this behaviour?
How does the Netlify platform work under the hood? How does your dashboard work? What software do you use? How does code get from Github to the end user? How do you handle multi-cloud etc? How does your Lambda function deployments/versioning work.
AWS has series called "This is my architecture" where you get an overview of how others are using AWS. I'm curious to hear what Netlify's version of this would be.
You're the best.
I have a Vue CLI based project which uses some .env files to set some values to be used in the build process. Since it's a frontend project (project for reference) the key isn't particularly sensitive amd I've just committed the files, but it makes it more difficult for users who want to change the setting for local testing with their own keys.
I haven't been able to find any good recommendations or examples of how to handle setting variables in a way that's also friendly to local development or deploying to non-Netlify systems.
Thanks in advance for any suggestions!
There is a lot of buzz around serverless functions, but I'm a but intimidated about getting started. How do I break the seal and start using functions-as-a-service?
I am trying to deploy mkdocs built doc from my project repository in netflix and ran in to build errors.
I initially used mkdocs>=0.9.0
in requirements.txt, but that gave error that url
filter is not recognized by Jinja. I then discovered this issue, which clarifies, the url filter change introduced in mkdocs 1.0+. I then tried mkdocs>=1.0.4
in requirements.txt, to force netlify to use latest version, but that seem to be not possible by netflix as I now got another error, that such a version not available.
2:14:39 PM: Collecting mkdocs>=1.0.4 (from -r requirements.txt (line 1))
2:14:39 PM: /opt/buildhome/python2.7/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
2:14:39 PM: SNIMissingWarning
2:14:39 PM: /opt/buildhome/python2.7/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
2:14:39 PM: InsecurePlatformWarning
2:14:39 PM: Could not find a version that satisfies the requirement mkdocs>=1.0.4 (from -r requirements.txt (line 1)) (from versions: 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.11.1, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5)
2:14:39 PM: No matching distribution found for mkdocs>=1.0.4 (from -r requirements.txt (line 1))
2:14:39 PM: /opt/buildhome/python2.7/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
2:14:39 PM: InsecurePlatformWarning
2:14:39 PM: Error installing pip dependencies
2:14:39 PM: Error running command: Build script returned non-zero exit code: 1
2:14:39 PM: Failing build: Failed to build site
2:14:39 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
2:14:39 PM: Finished processing build request in 8.318859762s
What I really want to ask is...
How do I make netlify use latest mkdocs? Kindly advice as its blocking our development.
For now, I think of deploying the built site directly instead of asking Netlify to build. If so, is it possible, and can I retain same url later on once we fix this issue? (As I would share them I do not want url to be changing)
In case Static Site Generators like Nuxt.js, Gatsby, Jekyll, and so on provide the option to incrementally build your page (based on the "current"/"previous" assets), would users be able to leverage that on Netlify? What would be the "best" way of implementing that from a Static Site Generators perspective?
I have a mono repo hosted on Github which contains multiple Netlify sites.
When a PR is created I'd like to see a preview of each site, eg. something like:
From the admin panel, there's a way to specify a custom context message:
But any Github commit status posted from "Site 1" will override "Site 2" (and vice-versa), meaning that something like posted in the first screenshot is currently not achievable.
Is there any workaround to this problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.