![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@layer0/core
Advanced tools
Core library for the [Layer0](https://developer.moovweb.com), infrastructure to run your big, dynamic website frontend and make it load in less than one second.
Core library for the Layer0, infrastructure to run your big, dynamic website frontend and make it load in less than one second.
The @layer0/core
package provides a CDN-as-JavaScript API for defining edge routing and logic on Layer0.
// routes.js
import { Router } from '@layer0/core/router'
import { createNextPlugin } = from '@layer0/next'
import { renderNextPage, nextRoutes } from '@layer0/next'
export default new Router()
// redirect at edge
.match('/some/path/:withVar', async ({ redirect }) => {
redirect('/some/other/path/:withVar', { statusCode: 301 })
})
// proxy the legacy site
.match('/some/path/:withVar', async ({ proxy }) => {
proxy('legacy', {
path: '/some/other/path/:withVar',
})
})
// match based on header and proxy the legacy site
.match({ headers: { 'layer0-device-type': /desktop/ } }, async ({ proxy }) => {
proxy('legacy')
})
// vanity URL for next.js
.match('/some/vanity/url/:productId', res => {
renderNextPage('/p/[productId]', res)
})
// Send a synthetic html response
.match('/static-html', ({ setResponseHeader, send }) => {
setResponseHeader('Content-Type', 'text/html; charset=UTF-8')
send('<html><body><h1>Hello world!</h1></body></html>', 200)
})
// match Next.js routes based on the pages directory
.use(nextRoutes)
// fall back to proxying the legacy site
.fallback(({ proxy }) => proxy('legacy'))
FAQs
Core library for the [Layer0](https://docs.layer0.co), infrastructure to run your big, dynamic website frontend and make it load in less than one second.
The npm package @layer0/core receives a total of 0 weekly downloads. As such, @layer0/core popularity was classified as not popular.
We found that @layer0/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.