This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [David M](twist-mention://4028) and I, are spearheading the migrating of our marketing landing pages from Next.js to Astro! 🎯 | |
| This continues the successful experimentation we've been doing with Astro (Help Center and pairing sessions) and we're now ready to tackle the full landing pages migration. | |
| **Why Astro?** | |
| Our current Next.js setup has significant pain points: slow page loads, large client bundles, and poor performance, especially on slower connections and mobile devices. We're hitting Next.js limitations that block us from achieving our performance goals, and the framework just seems to be heading in the wrong direction for what we need it for. | |
| Astro solves these problems with near-zero JavaScript by default and static generation. Plus, we keep our existing Atomic React components—no full rewrite needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config/dev/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "build:prod": "DEPLOY_ENV=prod webpack --config config/webpack/webpack.config.js", | |
| "build": "DEPLOY_ENV=dev webpack --watch --config config/webpack/webpack.config.js", | |
| "sync": "cd build/ && clasp push" | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { env } = require("process"); | |
| const deployEnv = env.DEPLOY_ENV || "dev"; | |
| [...] | |
| module.exports = { | |
| [...] | |
| plugins: [ | |
| new CopyWebpackPlugin([ | |
| { from: join(root, `config/${deployEnv}/.clasp.json`), to: ".", ToType: "file" }, | |
| ]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "sync": "DEPLOY_ENV=dev webpack --watch --config config/webpack/webpack.config.js", | |
| "push": "cd build/ && clasp push" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const exec = require("child_process").exec; | |
| [...] | |
| module.exports = { | |
| [...] | |
| plugins: [ | |
| [...] | |
| new CopyWebpackPlugin([ | |
| { from: join(root, "config/dev/.clasp.json"), to: ".", ToType: "file" }, | |
| ]), | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scriptId":"10r3UYeLI…" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
| [...] | |
| module.exports = { | |
| [...] | |
| plugins: [ | |
| new HtmlWebpackPlugin({ | |
| filename: "appsscript.json", | |
| template: join(root, "config", "appsscript.json.ejs"), | |
| chunks: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "oauthScopes": [ | |
| "https://www.googleapis.com/auth/gmail.addons.execute", | |
| "https://www.googleapis.com/auth/gmail.readonly" | |
| ], | |
| "gmail": { | |
| "name": "<%= htmlWebpackPlugin.options.addon.name %>", | |
| "logoUrl": "https://i.imgur.com/Em0d7Tc.png", | |
| "contextualTriggers": [{ | |
| "unconditional": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "build": "DEPLOY_ENV=dev webpack --watch --config config/webpack/webpack.config.js", | |
| } | |
| } |
NewerOlder