petitviolet blog

    gatsby (4 posts)

    icon
    Written by petitviolet

    Build oEmbed API for Gatsby blog

    2020-05-22GatsbyGo
    Build an API for oEmbed expansion of blog posts powered by Gatsby
    Previously, I wrote a post about that this blog has a capability to expand oEmbed articles using [raae/gatsby-remark-oembed](https://github.com/raae/gatsby-remark-oembed). https://blog.petitviolet.net/post/2020-03-06/oembed-expansion As it is embed here, this blog is also able to expand self post

    Configure custom 404 in GAE with Gatsby

    2020-05-01GoogleAppEngineGatsby
    How to write app.yaml to specify 404 in static file hosting
    tl;dr Use require_matching_file: true for not 404, and wildcard routing for 404 to handle the other paths. yaml:title=app.yaml - url: /(.*) static_files: public/\1 upload: public/(.*) secure: always require_matching_file: true - url: /(.*) static_files: public/404.html upload

    oEmbed expansion in Gatsby

    2020-03-06Gatsby
    oEmbed expansion in Gatsby
    [oEmbed](https://oembed.com/) > oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

    Hello World

    2020-03-04Gatsby
    New Blog using Gatsby
    Created a new blog with using [GatsbyJS](https://www.gatsbyjs.org/) and [gatsby-starter-blog](https://github.com/gatsbyjs/gatsby-starter-blog). The end of the fiscal year is a good time to build something new. 1 year ago, I renewed my portfolio as well using Gatsby. https://petitviolet.hatenabl