Comments (13)
Can you provide more information?
It might be better if I can reproduce the bug. At the moment, I can't see what went wrong.
Maybe the build setting is incorrect. Here's my build setting.
from satnaing.dev.
If i follow this command to deploy from GitHub, it's show me your portfolio. But if i manually use npm run build command and paste to create new site. Then show me that picture.
from satnaing.dev.
This might be because of environment variables that I've set for dynamic purpose.
In your netlify project, put the following env variables.
NEXT_PUBLIC_EMAIL='[email protected]'
NEXT_PUBLIC_URL=https://yoursitename.netlify.app
from satnaing.dev.
Do i use this code,
script id='admin-config-script' type='text/javascript'
var env =
NEXT_PUBLIC_EMAIL="@gmail.com",
NEXT_PUBLIC_URL= "https://netlify.appp",
today new problem for deploy GitHub, permission error and fail to run build.
first time using notlify and JavaScript , sorry for disturb you and message you again and again.
from satnaing.dev.
If you could run npm i && npm run build
in your local and then the problem occurs only on deployment, the problem might be environment variable.
So, follow the following steps in your netlify project. Go to Site Settings
> Build & deploy
> Environment
. Then create new environment variables as shown in the picture. Just two environment variables would be enough for you. (NEXT_PUBLIC_EMAIL
& NEXT_PUBLIC_URL
)
from satnaing.dev.
https://user-images.githubusercontent.com/57106394/205477019-aaf0b1a6-496a-48fd-8d64-87d60834b441.PNG
https://user-images.githubusercontent.com/57106394/205477037-bc2b2c1d-777b-4c19-bd29-f1aeeb9a0465.PNG
from satnaing.dev.
Yes, you can insert your env variable in there.
Replace https://satnaing.dev
with your site url.
from satnaing.dev.
Sorry, I don't success,
Code : https://github.com/rifat-ahmed-rar/blog
remodify code:
code: https://github.com/rifat-ahmed-rar/satnaing.dev
from satnaing.dev.
Hello @rifat-ahmed-rar
Sorry for late reply. I've been busy these days. Did you manage to deploy the site? I went to your site URL and found out that it was working as expected.
from satnaing.dev.
Hello @satnaing
It's ok. Actually I don't hope quickly answer. It's work . but problem is it's show your portfolio. although I chance information.
from satnaing.dev.
I don't quite get it. Can u elaborate plz?
I checked your deployed site's meta info and OG images and it is working fine.
What I mean is that if your env variables didn't work, the OG information would be incorrect. The image ur and site url are correct now.
You can make some changes to the code and the changes will be able to see after it is deployed successfully. As an example, you can see my test deployed site. I made a change in the banner and my change is reflecting after deployment.
from satnaing.dev.
Thank you very much for your help and allow me to use. Actually manually 1. npm run build and drop in app, show me error. best option, use GitHub. here 2. GitHub don't allow empty folder, but content folder empty. that's why automatically delete that folder. on other hand, without content folder code doesn't work. 3. in this time, i use without chance folder.
from satnaing.dev.
Oh okay.
If you've resolved the problem, I'll close this issue. You can drop a comment if you still have some issues.
from satnaing.dev.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from satnaing.dev.