The plugin does support static mode as long as you are using the hard: true
option (which you are). Note, this will not redirect requests. Rather, it will create two URLs that have the same contents either by copying the source URL into the target URL or by creating a symlink at the target URL that points to the source URL.
I believe your problem is that you have the source/target mappings backwards. The documentation doesn't make it clear, but the config should follow this pattern:
alias:
aliases: {
'/source-file-that-exists.html': '/target-file-you-want-to-create.html'
}
So to copy gettingstarted.html
into index.html
you'd want:
alias:
hard: true
symlink: true
aliases: {
'/gettingstarted.html': '/index.html'
}
extensions: [ 'html' ]