Unverified Commit b8b1ec24 authored by Yusril A's avatar Yusril A Committed by GitHub

docs: improve non-encrypted HTTP conn to a secure (#57998)

parent ffdfd332
...@@ -8,7 +8,7 @@ Add or generate a `sitemap.xml` file that matches the [Sitemaps XML format](http ...@@ -8,7 +8,7 @@ Add or generate a `sitemap.xml` file that matches the [Sitemaps XML format](http
## Static `sitemap.xml` ## Static `sitemap.xml`
```xml filename="app/sitemap.xml" ```xml filename="app/sitemap.xml"
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>https://acme.com</loc> <loc>https://acme.com</loc>
<lastmod>2023-04-06T15:02:24.021Z</lastmod> <lastmod>2023-04-06T15:02:24.021Z</lastmod>
...@@ -89,7 +89,7 @@ export default function sitemap() { ...@@ -89,7 +89,7 @@ export default function sitemap() {
Output: Output:
```xml filename="acme.com/sitemap.xml" ```xml filename="acme.com/sitemap.xml"
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>https://acme.com</loc> <loc>https://acme.com</loc>
<lastmod>2023-04-06T15:02:24.021Z</lastmod> <lastmod>2023-04-06T15:02:24.021Z</lastmod>
......
...@@ -116,7 +116,7 @@ If you have an existing database with user data, you'll likely want to utilize a ...@@ -116,7 +116,7 @@ If you have an existing database with user data, you'll likely want to utilize a
- If you want a low-level, encrypted, and stateless session utility use [`iron-session`](https://github.com/vercel/next.js/tree/canary/examples/with-iron-session). - If you want a low-level, encrypted, and stateless session utility use [`iron-session`](https://github.com/vercel/next.js/tree/canary/examples/with-iron-session).
- If you want a full-featured authentication system with built-in providers (Google, Facebook, GitHub…), JWT, JWE, email/password, magic links and more… use [`next-auth`](https://github.com/nextauthjs/next-auth-example). - If you want a full-featured authentication system with built-in providers (Google, Facebook, GitHub…), JWT, JWE, email/password, magic links and more… use [`next-auth`](https://github.com/nextauthjs/next-auth-example).
Both of these libraries support either authentication pattern. If you're interested in [Passport](http://www.passportjs.org/), we also have examples for it using secure and encrypted cookies: Both of these libraries support either authentication pattern. If you're interested in [Passport](https://www.passportjs.org/), we also have examples for it using secure and encrypted cookies:
- [with-passport](https://github.com/vercel/next.js/tree/canary/examples/with-passport) - [with-passport](https://github.com/vercel/next.js/tree/canary/examples/with-passport)
- [with-passport-and-next-connect](https://github.com/vercel/next.js/tree/canary/examples/with-passport-and-next-connect) - [with-passport-and-next-connect](https://github.com/vercel/next.js/tree/canary/examples/with-passport-and-next-connect)
......
...@@ -3,13 +3,13 @@ title: Next.js Compiler ...@@ -3,13 +3,13 @@ title: Next.js Compiler
description: Next.js Compiler, written in Rust, which transforms and minifies your Next.js application. description: Next.js Compiler, written in Rust, which transforms and minifies your Next.js application.
--- ---
The Next.js Compiler, written in Rust using [SWC](http://swc.rs/), allows Next.js to transform and minify your JavaScript code for production. This replaces Babel for individual files and Terser for minifying output bundles. The Next.js Compiler, written in Rust using [SWC](https://swc.rs/), allows Next.js to transform and minify your JavaScript code for production. This replaces Babel for individual files and Terser for minifying output bundles.
Compilation using the Next.js Compiler is 17x faster than Babel and enabled by default since Next.js version 12. If you have an existing Babel configuration or are using [unsupported features](#unsupported-features), your application will opt-out of the Next.js Compiler and continue using Babel. Compilation using the Next.js Compiler is 17x faster than Babel and enabled by default since Next.js version 12. If you have an existing Babel configuration or are using [unsupported features](#unsupported-features), your application will opt-out of the Next.js Compiler and continue using Babel.
## Why SWC? ## Why SWC?
[SWC](http://swc.rs/) is an extensible Rust-based platform for the next generation of fast developer tools. [SWC](https://swc.rs/) is an extensible Rust-based platform for the next generation of fast developer tools.
SWC can be used for compilation, minification, bundling, and more – and is designed to be extended. It's something you can call to perform code transformations (either built-in or custom). Running those transformations happens through higher-level tools like Next.js. SWC can be used for compilation, minification, bundling, and more – and is designed to be extended. It's something you can call to perform code transformations (either built-in or custom). Running those transformations happens through higher-level tools like Next.js.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment