Remove Availability Remove Code Remove Magazine Remove Processing
article thumbnail

Creating A Magento PWA: Customizing Themes vs. Coding From Scratch

Smashing Magazine

Creating A Magento PWA: Customizing Themes vs. Coding From Scratch. Creating A Magento PWA: Customizing Themes vs. Coding From Scratch. One of the reasons for that is because a PWA has the same code base. So unlike the case with native applications, the progressive web app needs to be coded only once. Alex Husar.

Code 74
article thumbnail

How To Protect Your API Key In Production With Next.js API Route

Smashing Magazine

It saves you the stress of hard hard-coding your independent routes. pageProps} /> </React.Fragment> ); } export default MyApp; If you are new to Next.js, kindly go through this article that will guide you through the process. The environment variable (which is our API key) can only be available in development mode.

Servers 130
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; Here’s how that code looks like: // useEffect and useState must be imported from 'react' const [wildcard, setWildcard] = useState("") useEffect(() => { setWildcard(window.location.hostname.split(".")[0])

Servers 83
article thumbnail

40+ Best Web Development Blogs of 2018

KeyCDN

That’s why we’ve compiled an exhaustive list of web development blogs and newsletters to make this process easier. It also includes a handy CSS reference, a web development experiment playground, tutorials, blueprints to get started from and Collective - a digital design magazine that makes it easy to keep up with trends.

article thumbnail

Implementing A Reset Password Feature With Next.js Dynamic Routes

Smashing Magazine

We’re only picking a specific pattern of the authentication process: the “reset password” flow and how it can be implemented on the client-side — frontend — of a web application. As much as we’d love to just get over the flow of the reset password process, the UX of that flow should be prioritized too. More after jump!

article thumbnail

Are Imposter Domains Re-Publishing Your Website?

Smashing Magazine

They all generally are instrumented as JavaScript processes that are loaded onto your site’s web pages through a tag or snippet of loader code. Typically, these would be pages that might no longer be available on the site but are available in third-party archives. Turning The Data Into Information.

Website 89
article thumbnail

How To Build Resilient JavaScript UIs

Smashing Magazine

Lots can go wrong: a network request fails, a third-party library breaks, a JavaScript feature is unsupported (assuming JavaScript is even available), a CDN goes down, a user behaves unexpectedly (they double-click a submit button), the list goes on. Things on the web can break — the odds are stacked against us. Resilience is extrinsic.

Network 145