Developer turned PM
Working on updates with Dependabot, sprucing up my product skills, and dusting off my math skills
Living in ATX, but you'll find me traveling around the states in my Winnebago
License: MIT License
Developer turned PM
Working on updates with Dependabot, sprucing up my product skills, and dusting off my math skills
Living in ATX, but you'll find me traveling around the states in my Winnebago
Errors thrown currently as an example:
Uncaught SyntaxError: Unexpected token '&'
(index):13 Uncaught SyntaxError: Unexpected token '&'
(index):1 Access to link prefetch resource at 'https://developers.cloudflare.com/workers' (redirected from 'https://staging.bigfluffycloudflare.com/workers/page-data/tutorials/build-an-application/page-data.json') from origin 'https://staging.bigfluffycloudflare.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
developers.cloudflare.com/workers:1 Failed to load resource: net::ERR_FAILED
(index):1 Access to link prefetch resource at 'https://developers.cloudflare.com/workers' (redirected from 'https://staging.bigfluffycloudflare.com/workers/page-data/tutorials/build-a-serverless-function/page-data.json') from origin 'https://staging.bigfluffycloudflare.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
developers.cloudflare.com/workers:1 Failed to load resource: net::ERR_FAILED
consider re-adding:
/workers/templates?q=blah
searches the gallery for blah)// // Handle ?q query param and set default search with it,
// // if it exists
// const url = new URL(window.location)
// const initialSearch = url.searchParams.get('q')
// if (initialSearch) {
// handleNewSearchValue(initialSearch)
// }
{{ if not .Site.Params.noHomeIcon }}
, showvisitedlinks
Set up webmaster and check the site map and all that is working fine
Port everything that was in baseof.html
including:
Current there are 523 errors on staging
Some examples:
GET https://staging.bigfluffycloudflare.com/component---src-templates-markdown-template-tsx-e80553dd79cd2ce40efb.js net::ERR_ABORTED 523
5(index):145 GET https://staging.bigfluffycloudflare.com/webpack-runtime-38809eaa3280422b456e.js net::ERR_ABORTED 523
8staging.bigfluffycloudflare.com/:5 GET https://staging.bigfluffycloudflare.com/styles-c4c8dcf3e0a9436343be.js net::ERR_ABORTED 523
(index):1114 GET https://staging.bigfluffycloudflare.com/styles-c4c8dcf3e0a9436343be.js net::ERR_ABORTED 523
This makes sense staging is just on the path /workers/*
, we should make gatsby look instead for those files under /workers
And make sure no configuration/value is not missed in gatsby
Look into how to replace the following fields in gatsby:
Old hugo config:
baseURL = "https://developers.cloudflare.com/workers/"
languageCode = "en-us"
title = "Cloudflare Workers Docs"
theme = "@cloudflare/hugo-cloudflare-docs"
themesDir = "node_modules"
description = "Cloudflare Workers lets you write JavaScript on the Edge"
PygmentsCodeFences = true
PygmentsStyle = "monokai"
canonifyURLs = true
disableKinds = "taxonomyTerm"
ignoreFiles = [ "style/*", "CONTRIBUTING.md" ]
Now both gatsby and the worker is considering the /workers prefix, we should have one or the other handler all this
search through old hugo files in content/templates/pages
for files with content other than the template-page partial. Then restore that content
Make sure the title, description meta data is accurate for template pages.
We used to use the HTML rewriter the manually rewrite those elements, but this is clearly not best practice and actually break things in gatsby. What used to be in the worker main.js
:
// TODO remove this and just set the meta title/descriptions in Gatsby
if (/^templates\/pages(?!.+\/)/.test(pathname)){
//Grab the template's title from the registry
const templateIdMatch = pathname.split(/^templates\/pages(?!.+\/)/)//pathname.replace(/.*pages\//, '')
console.log("templateIdMatch", templateIdMatch)
if(!templateIdMatch[1]){
throw 'Not in a format where a template ID can be found' + pathname
}
const templateId = templateIdMatch[1]
const templateResp = await fetch(templateRegURL + templateId)
console.log(templateRegURL + templateId)
const templateJSON = await templateResp.json()
const metaInfo = {
title: templateJSON.title + ' - Cloudflare Workers Docs',
description: templateJSON.description,
}
// Rewrite all meta titles/descriptions the the correct title
return await new HTMLRewriter()
.on('meta', new MetaHandler(metaInfo))
.on('head>title', new TitleHandler(metaInfo))
.transform(body)
}
e.g. on quickstart http://localhost:8000/workers/quickstart#publish-your-project link does not navigate to that spot since id="publish-your-project"
does not exist
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.