netlify

Any way to have a common netlify.toml file for a single repository and multiple sites?

早过忘川 提交于 2019-12-20 04:28:14
问题 I'm looking out a way to define two site builds on netlify, sourced from the same repo, using a single common netlify.toml . Is it possible to do so? I have a GitHub repository named hugo-dream-plus for which I've configured two website builds on netlify, namely dream-plus-posts and dream-plus-cards . Both of these builds share the same environment variables and mostly all of the configurations, except for the build commands: hugo --config cards.toml #For dream-plus-cards hugo --config posts

Is it possible to use the Netlify CMS only with Vuepress but without deploying on Netlify

寵の児 提交于 2019-12-13 20:52:43
问题 I have a Vuepress repository on GitHub and I'm trying to use NetlifyCMS without the option to depoly on the Netlify website. I can install the CMS without problems, with the config.yml and index.html files but if I go to www.site.com/admin I get the API error - Failed to load entry: API_ERROR: Not Found If I create the OAuth App on GitHub I can use the https://api.netlify.com/auth/done Authorization callback URL and set up it with the Client ID and Client Secret on Netlify I won't get the API

How do I call a netlify lambda function from my React app?

百般思念 提交于 2019-12-13 18:18:08
问题 I am new to netlify and the serverless architecture. In react I would normally import an action into my component then call that action which would make a call to the server. Right now I am just trying to test my function locally and Im not sure where to import from or how exactly to call my function to see if it even works. Help would be greatly appreciated. Below is a very basic function Im trying to call to get started. //in functions/test.js import axios from 'axios' exports.handler =

Issue in deployment of react app in netlify

て烟熏妆下的殇ゞ 提交于 2019-12-13 03:59:41
问题 I am trying to deploy react application in netlify as referred from the medium link: https://link.medium.com/nw9ZCh0lrV so I used express server to define build scripts and setting application in production mode Build scripts are creating in local machine and uploaded in netlify site It shows message as successful deployment on clicking on URL link, it shows status to GET request for build scripts as 404 netlify URL link: https://nostalgic-euclid-4f95ab.netlify.com can you guys help me where

Is Netlify able to receive nested values on Forms feature? [react-dates with Formik]

泪湿孤枕 提交于 2019-12-13 02:48:51
问题 I successfully set react-dates with Formik under Gatsbyjs. Here you have a working demo: https://codesandbox.io/s/723l233my1 Now, my problem concerns netlify (or the way in which react-dates nest the values). So depending on the problem I have two questions: - Is Netlify able to receive nested objects on the Forms feature? - Can I tell react-dates to give me shallow values instead of nested objects? In the working demo you can see that the values (startDate and endDate) seems shallow: "values

Automatically add new posts to the Sidebar

倾然丶 夕夏残阳落幕 提交于 2019-12-12 19:06:56
问题 I'm using VuePress and NetlifyCMS as Content Management. I have 3 collections ( design , front-end and back-end ) which contains an indefinite number of pages. Those pages are created through the NetlifyCMS dashboard and are added to the defined folder. New design pages are added to the design folder. New front-end pages are added to the front-end folder. [...] This works fine but I'm facing an issue. Since my new pages are not defined in the sidebar config, they are not available from the

“Successful” Static Netlify Form Submissions Don't Show in Dashboard

本秂侑毒 提交于 2019-12-11 23:32:02
问题 I have a completely static html form with some data using the netlify tag. When I submit it, I get a 200 and see the default success page, but do not see the submission in the Netlify Dashboard. I do see the form was recognized and has an entry in the dashboard, but it shows zero submissions. Note that my issue is different from a similar question because this is a static form and my content-type is already "application/x-www-form-urlencoded" which was what was wrong in that other case. I don

netlify cli error - EINVAL: invalid argument, read

笑着哭i 提交于 2019-12-11 19:38:01
问题 I'm working with node v11.5 and npm 6.4.1 on a flash drive E, on win 7, I'm trying to install the lastest netlify cli. Following https://cli.netlify.com/getting-started , I have: $ npm install netlify-cli -g npm ERR! code EINVAL npm ERR! EINVAL: invalid argument, read The error log shows pretty much the same thing: 12961 verbose stack Error: EINVAL: invalid argument, read 12961 verbose stack at E:\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:245:7 12961 verbose stack at E:\nodejs

Photos won't load and links are dead

限于喜欢 提交于 2019-12-11 18:26:57
问题 So I hosted my website on netlify with my github repo. All of my photos and files used in the site are there but they will not load. Only my index.html and style.css that is outside of all of the folders will load. I have a link to my github repo. Github Repo html{ background-color:#abb2bc; } body{ margin:0; } h1 { margin:0; background-color: #363b42; } img{ width:250px; } .navbar{ text-align:center; } .blogpost{ background-color:white; padding:5%; margin:3% } #blogheader{ margin-top:15px; }

Why are the steps I took to fix 'builds' in Netlify/Hugo not working?

核能气质少年 提交于 2019-12-11 17:05:13
问题 Netlify/Hugo is not updating the changes I have pushed to Github. This is a weird issue since I have, as far as I am concerned, not done anything different from what I have been doing before this problem occurred. I have followed the instructions of this book and the one offered by of Netlify but none worked. I have also contacted Netlify but could not completely understand what I am supposed to do after they answered me. See below. When I take a look at your builds, I see hugo errors. I